ghetto error handling