This will be a bit of a TMI post but i am worried..

Last night i went to the toilet and did number 2's and it was green, and just now i just threw up and again it was green. I had fruit loops for breakfast so i dont know if that contributed to the green but when i threw up it went through my nose and when i blew my nose it was green.

I did a google search and they said unless i have been eating a large amount of spinach or other greens then that would be why... but i havent eaten anything green in the last week.. and it said it would be bile and something to do with my liver, does that mean my liver isnt working properly????