Skip to content

Commit

Permalink
Remove redundant 'Error:' prefix from error messages.
Browse files Browse the repository at this point in the history
  • Loading branch information
The-Best-Codes committed Oct 31, 2024
1 parent b12d2f3 commit 5c67e62
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/tokenTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { error, success } from '../common/utils/logger';
const token = process.env.BOT_TOKEN;

if (!token) {
error('Error: BOT_TOKEN is not set in the environment variables.');
error('BOT_TOKEN is not set in the environment variables.');
process.exit(1);
}

Expand All @@ -17,6 +17,6 @@ client.login(token)
client.destroy();
})
.catch(() => {
error('Error: Invalid bot token.');
error('Invalid bot token.');
process.exit(1);
});

0 comments on commit 5c67e62

Please sign in to comment.