more generic error reporting