Print specific error when rtm requests fails
@@ -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)
