Fix printing only 1 line when command exec fails

This commit is contained in:
SileNce5k 2021-06-30 17:18:48 +02:00
parent 3bb88034cd
commit 70f444fc8b
No known key found for this signature in database
GPG key ID: C507260E7F2583AD

View file

@ -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)
}
}