more consistent error reporting