From f41a0525d641958567b30351392dffb7120ad64e Mon Sep 17 00:00:00 2001 From: Matthew R Date: Fri, 2 Jul 2021 17:17:09 -0400 Subject: [PATCH] fixes --- src/commands/x509_upload.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/x509_upload.ts b/src/commands/x509_upload.ts index 450f020..1988314 100644 --- a/src/commands/x509_upload.ts +++ b/src/commands/x509_upload.ts @@ -25,7 +25,7 @@ export default class X509_Upload extends Command { try { await axios.post('https://certapi.libraryofcode.org/parse', x509); } catch { - this.error(message.channel, 'Unable to parse your x509 certificate.'); + return this.error(message.channel, 'Unable to parse your x509 certificate.'); } finally { await this.client.db.Member.updateOne({ userID: message.author.id }, { x509 }); this.success(message.channel, 'x509 certificate successfully uploaded to your account.');