From c4620a0b0cc689b48a0e4aee8b1fc94fdb93e55d Mon Sep 17 00:00:00 2001 From: Jack Date: Wed, 20 Apr 2016 04:24:32 -0400 Subject: [PATCH] add problem_code to daemon_status --- lbrynet/lbrynet_daemon/LBRYDaemon.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lbrynet/lbrynet_daemon/LBRYDaemon.py b/lbrynet/lbrynet_daemon/LBRYDaemon.py index 3afff6eaf..05a089afd 100644 --- a/lbrynet/lbrynet_daemon/LBRYDaemon.py +++ b/lbrynet/lbrynet_daemon/LBRYDaemon.py @@ -1024,9 +1024,11 @@ class LBRYDaemon(jsonrpc.JSONRPC): 'is_lagging': flag set to indicate lag, if set message will contain relevant message """ - r = {'code': self.startup_status[0], 'message': self.startup_status[1], 'progress': None, 'is_lagging': None} + r = {'code': self.startup_status[0], 'message': self.startup_status[1], + 'progress': None, 'is_lagging': None, 'problem_code': None} if self.connection_problem: + r['problem_code'] = self.connection_problem[0] r['message'] = self.connection_problem[1] r['is_lagging'] = True elif self.startup_status[0] == LOADING_WALLET_CODE: