improve server error reporting