Skip to content

Commit

Permalink
[github] Give an error when using .addtrace with no args
Browse files Browse the repository at this point in the history
  • Loading branch information
embolalia committed Oct 27, 2014
1 parent 3e2d3fc commit 42d5ad9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion github.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,11 @@ def add_traceback(bot, trigger):
# Make sure the API is set up
gitAPI = checkConfig(bot)
if not gitAPI:
return bot.say('Git module not configured, make sure github.oauth_token and github.repo are defined')
return bot.say('GitHub module not configured, make sure github.oauth_token and github.repo are defined')

if not trigger.group(2):
bot.say('Please give both the issue number and the error message.')
return

# Make sure the input is valid
args = trigger.group(2).split(None, 1)
Expand Down

0 comments on commit 42d5ad9

Please sign in to comment.