diff options
author | Trygve Aaberge <trygveaa@gmail.com> | 2020-05-05 19:29:56 +0200 |
---|---|---|
committer | Trygve Aaberge <trygveaa@gmail.com> | 2020-05-05 19:32:33 +0200 |
commit | fd22387834f24b8cbc7df34706b723178e71ecd7 (patch) | |
tree | b84b9a6eb2b52e6b308f81c2a5d8d563c4e73c2b | |
parent | f376dd8652243d3dc24bd6642e18aa054f6f9e54 (diff) | |
download | wee-slack-fd22387834f24b8cbc7df34706b723178e71ecd7.tar.gz |
Include return_code in error from receive_httprequest_callback
-rw-r--r-- | wee_slack.py | 4 |
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) |