better errors

This commit is contained in:
Daniel Odendahl Jr
2017-05-16 17:35:53 +00:00
parent 92f7c05015
commit 6b4beb3bbe
49 changed files with 67 additions and 67 deletions
+1 -1
View File
@@ -35,7 +35,7 @@ module.exports = class GoogleCommand extends Command {
href = querystring.parse(href.replace('/url?', ''));
return message.edit(href.q);
} catch (err) {
return message.edit(err.message);
return message.edit(`${err.name}: ${err.message}`);
}
}
};