More info added to error

merge-requests/1/merge
Bsian 2019-11-16 22:50:58 +00:00
parent 61bfb1e2ec
commit 5657e6bc14
No known key found for this signature in database
GPG Key ID: 097FB9A291026091
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ export default class SecureSign_Init extends Command {
return msg.edit(`${this.client.stores.emojis.error} ***Credentials incorrect***`);
}
const init = await this.client.util.exec(`sudo -H -u ${account.username} bash -c 'securesign-canary init -a ${args[0]}'`);
if (!init.endsWith('Initialization sequence completed.')) throw new Error('Account initialization did not complete successfully');
if (!init.endsWith('Initialization sequence completed.')) throw new Error(`Account initialization did not complete successfully:\n${init}`);
return msg.edit(`${this.client.stores.emojis.success} ***Account initialized***`);
} catch (error) {
return this.client.util.handleError(error, message, this);