This commit is contained in:
Isaac
2021-02-16 12:28:43 +00:00
parent 8a827582c6
commit dc902b6daf
3 changed files with 2 additions and 56 deletions

View File

@@ -49,7 +49,7 @@ log.report = error => {
'<< Issue report >>',
'Please include this information if you ask for help about the following error!',
`Support server: ${terminalLink('go.eartharoid.me/discord', 'https://go.eartharoid.me/discord')}`,
`Node.JS version: ${process.versions.node.split('.')}`,
`Node.JS version: ${process.versions.node}`,
`Bot version: ${version}`,
`Platform: ${process.platform}`
];

View File

@@ -21,7 +21,7 @@ module.exports = (log) => {
if (!supported.includes(type)) {
log.report('Invalid database type');
throw new Error('DB_TYPE is not valid type');
throw new Error(`DB_TYPE (${type}) is not a valid type`);
}
try {