Skip to content
This repository has been archived by the owner on Dec 6, 2021. It is now read-only.

Commit

Permalink
Add error object to responder error
Browse files Browse the repository at this point in the history
  • Loading branch information
pyraxo committed Apr 23, 2017
1 parent 34756e3 commit 4b2f59c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sylphy",
"version": "0.3.7",
"version": "0.3.8",
"description": "The better Discord bot framework",
"main": "build/index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/structures/Command.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ class Command extends Base {
}, usage).then((args = {}) => {
container.args = args
return this[process](container, responder)
}, err => responder.error(`{{%errors.${err.message}}}`)).catch(this.logError.bind(this))
}, err => responder.error(`{{%errors.${err.message}}}`, err)).catch(this.logError.bind(this))
}

/**
Expand Down

0 comments on commit 4b2f59c

Please sign in to comment.