aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2020-05-05 19:29:56 +0200
committerTrygve Aaberge <trygveaa@gmail.com>2020-05-05 19:32:33 +0200
commitfd22387834f24b8cbc7df34706b723178e71ecd7 (patch)
treeb84b9a6eb2b52e6b308f81c2a5d8d563c4e73c2b
parentf376dd8652243d3dc24bd6642e18aa054f6f9e54 (diff)
downloadwee-slack-fd22387834f24b8cbc7df34706b723178e71ecd7.tar.gz
Include return_code in error from receive_httprequest_callback
-rw-r--r--wee_slack.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/wee_slack.py b/wee_slack.py
index 8ffcda5..5c780e4 100644
--- a/wee_slack.py
+++ b/wee_slack.py
@@ -593,8 +593,8 @@ class EventRouter(object):
retry_text = ('retrying' if request_metadata.should_try() else
'will not retry after too many failed attempts')
w.prnt('', ('Failed connecting to slack team with token {}, {}. ' +
- 'If this persists, try increasing slack_timeout. Error: {}')
- .format(token_for_print(request_metadata.token), retry_text, err))
+ 'If this persists, try increasing slack_timeout. Error (code {}): {}')
+ .format(token_for_print(request_metadata.token), retry_text, return_code, err))
dbg('rtm.start failed with return_code {}. stack:\n{}'
.format(return_code, ''.join(traceback.format_stack())), level=5)
self.receive(request_metadata)