Fix whoops error handling