Fix printing only 1 line when command exec fails
This commit is contained in:
parent
3bb88034cd
commit
70f444fc8b
1 changed files with 4 additions and 1 deletions
|
@ -25,6 +25,9 @@ module.exports = function(client, owners, message, globalPrefix){
|
|||
command.execute({ message: message, args: args, client: client, prefix: prefix, owners: owners})
|
||||
console.log(`${message.author.username}(id: ${message.author.id}) executed ${command.name} with '${args}' as arguments`)
|
||||
} catch (error) {
|
||||
console.log(`${error}\n-------`)
|
||||
let divider = "------------------------"
|
||||
console.log(divider)
|
||||
console.error(error)
|
||||
console.log(divider)
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue