Use invoke
/handle
in settingsChannel
This commit is contained in:
parent
37992715cd
commit
631e36dc0a
10 changed files with 597 additions and 810 deletions
|
@ -2,7 +2,8 @@
|
|||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
/* eslint-disable no-console */
|
||||
import { getCliOptions, getPrintableError } from './common';
|
||||
import * as Errors from '../types/errors';
|
||||
import { getCliOptions } from './common';
|
||||
import { keyPair } from './curve';
|
||||
import { writeHexToPath } from './signature';
|
||||
|
||||
|
@ -33,7 +34,7 @@ type OptionsType = {
|
|||
|
||||
const cliOptions = getCliOptions<OptionsType>(OPTIONS);
|
||||
go(cliOptions).catch(error => {
|
||||
console.error('Something went wrong!', getPrintableError(error));
|
||||
console.error('Something went wrong!', Errors.toLogFormat(error));
|
||||
});
|
||||
|
||||
async function go(options: OptionsType) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue