Skip to content

Commit

Permalink
fix(discord: commands): update - show "no output" if no NPM stdout
Browse files Browse the repository at this point in the history
  • Loading branch information
dsevillamartin committed Oct 12, 2017
1 parent a2a3fdf commit 4644c7e
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 3,376 deletions.
5 changes: 0 additions & 5 deletions .bithoundrc

This file was deleted.

1 change: 0 additions & 1 deletion _config.yml

This file was deleted.

2 changes: 1 addition & 1 deletion lib/Discord/Commands/Update.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ class UpdateCommand extends Command {
return this.installDeps(info).then(stdouts =>
this.addFieldToEmbed(message, embedData, {
name: 'NPM',
value: stdouts.map(stdout => `\`\`\`sh\n${stdout.slice(0, 1000)}\n\`\`\``).join('\n'),
value: stdouts.map(stdout => `\`\`\`sh\n${stdout.slice(0, 1000)}\n\`\`\``).join('\n') || 'No output',
})
);
})
Expand Down
Loading

0 comments on commit 4644c7e

Please sign in to comment.