Peel and chop the onion. Heat the oil in a saucepan, and add the onion and garlic.
Combine bouillon, sugar, sherry and tomato mash, and add this mixture to the saucepan.
Keep stirring and leave to boil for 5 minutes.