Skip to content

Commit

Permalink
Update warning message for missing command ID
Browse files Browse the repository at this point in the history
  • Loading branch information
Jorge Padilla committed Aug 17, 2016
1 parent e715f20 commit 69235b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scripts/ibmcloud-auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ function checkAuthorization(context, next, done) {
var commandId;
if (!context ||
(!context.commandId && (!context.listener || !context.listener.options || !context.listener.options.id))){
bot.logger.warning(`${TAG}: The 'context' object doesn't contain a 'commandId' or 'listener.options_id' key. Unrecognized commands are authorized.`);
bot.logger.warning(`${TAG}: Authorization was requested for a script without a valid id. Authorization is granted for unrecognized commands. You should provide an id in your scripts.`);
} else {
commandId = context.commandId || context.listener.options.id;
}
Expand Down

0 comments on commit 69235b3

Please sign in to comment.