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.');