Server: better error reporting