Sounds like you may have vomited up some bile
Bile is the fluid stored in the gallbladder that helps the body digest fats. It is a very bitter tasting substance. If it doesn't happen again - probably nothing to worry about. If it occurs again you might want to get it checked out with a routine visit to your doctor.