better err mesg

This commit is contained in:
Alex Grintsvayg 2017-06-22 06:10:23 -04:00
parent 77da61c44b
commit fa9b9233d1

View file

@ -331,8 +331,8 @@ class AuthJSONRPCServer(AuthorizedBase):
request, id_ request, id_
) )
return server.NOT_DONE_YET return server.NOT_DONE_YET
except NotAllowedDuringStartupError as err: except NotAllowedDuringStartupError:
log.warning('Function not allowed during startup %s: %s', function_name, err) log.warning('Function not allowed during startup: %s', function_name)
self._render_error( self._render_error(
JSONRPCError("This method is unavailable until the daemon is fully started", JSONRPCError("This method is unavailable until the daemon is fully started",
code=JSONRPCError.CODE_INVALID_REQUEST), code=JSONRPCError.CODE_INVALID_REQUEST),