Better error reporting in server