diff --git a/src/class/Util.ts b/src/class/Util.ts index c952600..7911e18 100644 --- a/src/class/Util.ts +++ b/src/class/Util.ts @@ -158,7 +158,7 @@ export default class Util { public async createModerationLog(user: string, moderator: Member, type: number, reason?: string, duration?: number): Promise { const moderatorID = moderator.id; const account = await this.client.db.Account.findOne({ $or: [{ username: user }, { userID: user }] }); - if (!account) return Promise.reject(new Error('Account not found')); + if (!account) return Promise.reject(new Error(`Account ${user} not found`)); const { username, userID } = account; const logInput: { username: string, userID: string, logID: string, moderatorID: string, reason?: string, type: number, date: Date, expiration?: { date: Date, processed: boolean }} = { username, userID, logID: uuid(), moderatorID, type, date: new Date(),