Meanwhile, preheat the oven to 180ºC (350ºF, gas mark 4). Heat the oil in a saucepan, add the onion and fry gently for about 5 minutes, stirring frequently, until soft. Stir in the garlic and chili, and cook for 2 more minutes. Remove from the heat and stir in the chopped tomatoes.