From 78b926678ae7200958e224704abc46936f93c2ad Mon Sep 17 00:00:00 2001 From: Bsian Date: Sat, 4 Jan 2020 13:03:29 +0000 Subject: [PATCH] Stop error --- src/commands/parseall.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/parseall.ts b/src/commands/parseall.ts index ad8867e..dfd72b5 100644 --- a/src/commands/parseall.ts +++ b/src/commands/parseall.ts @@ -47,7 +47,7 @@ export default class Parseall extends Command { else final.push(`${this.client.stores.emojis.success} **${a.username}** Expires in ${time}`); } catch (error) { if (error.message.includes('no such file or directory') || error.message.includes('File doesn\'t exist.')) final.push(`${this.client.stores.emojis.error} **${a.username}** Unable to locate certificate`); - if (error.message.includes('panic: Certificate PEM Encode == nil')) final.push(`${this.client.stores.emojis.error} ** ${a.username}** Invalid certificate`); + else if (error.message.includes('panic: Certificate PEM Encode == nil')) final.push(`${this.client.stores.emojis.error} ** ${a.username}** Invalid certificate`); else throw error; } }