diff options
author | Trygve Aaberge <trygveaa@gmail.com> | 2019-06-04 21:56:04 +0200 |
---|---|---|
committer | Trygve Aaberge <trygveaa@gmail.com> | 2019-06-04 21:56:40 +0200 |
commit | a235e3b7d9c1f18b1c28bcf03e89577e2d9e3c08 (patch) | |
tree | 1e50c72675d37114b2bc66c8bfc840e015cfb485 | |
parent | b9897784e75ea835d9f2d8149c0abd1b9365092e (diff) | |
download | wee-slack-a235e3b7d9c1f18b1c28bcf03e89577e2d9e3c08.tar.gz |
Print specific error when rtm requests fails
-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 a1481f7..a5733cf 100644 --- a/wee_slack.py +++ b/wee_slack.py @@ -509,8 +509,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 starting with {}, {}. ' + - 'If this persists, try increasing slack_timeout.') - .format(request_metadata.token[:15], retry_text)) + 'If this persists, try increasing slack_timeout. Error: {}') + .format(request_metadata.token[:15], retry_text, err)) dbg('rtm.start failed with return_code {}. stack:\n{}' .format(return_code, ''.join(traceback.format_stack())), level=5) self.receive(request_metadata) |