Consistent error handling