Diagnosis

merge-requests/4/head
Bsian 2020-01-04 15:30:19 +00:00
parent 542bed168b
commit 3a40a6cc2b
No known key found for this signature in database
GPG Key ID: 097FB9A291026091
1 changed files with 1 additions and 2 deletions

View File

@ -38,7 +38,6 @@ export default class Parseall extends Command {
const final = search.map(async (a) => {
const result = await parsed[search.findIndex((acc) => acc === a)];
if (result.status === 'rejected') {
this.client.signale.info(result.reason);
if (result.reason.message.includes('no such file or directory') || result.reason.message.includes('File doesn\'t exist.')) return `${this.client.stores.emojis.error} **${a.username}** Unable to locate certificate`;
if (result.reason.message.includes('panic: Certificate PEM Encode == nil')) return `${this.client.stores.emojis.error} **${a.username}** Invalid certificate`;
throw result.reason;
@ -55,11 +54,11 @@ export default class Parseall extends Command {
precise.push([t, measurements[index]]);
});
const time = precise.filter((n) => n[0]).map(((v) => v.join(''))).join(', ');
this.client.signale.info(time);
if (notAfter < new Date()) return `${this.client.stores.emojis.error} **${a.username}** Expired ${time} ago`;
return `${this.client.stores.emojis.success} **${a.username}** Expires in ${time}`;
});
this.client.signale.info(final);
if (final.join('\n').length < 2048) embed.setDescription(final.join('\n'));
else {