mirror of
https://github.com/status-im/liquid-funding-console.git
synced 2025-02-21 07:28:25 +00:00
commit
26f404261b
@ -16,15 +16,16 @@ function doAction(actionText, action) {
|
||||
name: 'action',
|
||||
message: 'Execute?',
|
||||
}
|
||||
]).then((answer) => {
|
||||
]).then(async (answer) => {
|
||||
if (answer.action === false) return resolve();
|
||||
console.dir("executing...");
|
||||
try {
|
||||
action()
|
||||
await action()
|
||||
} catch (e) {
|
||||
console.dir("== error")
|
||||
console.dir(e)
|
||||
}
|
||||
console.log("\n");
|
||||
resolve()
|
||||
})
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user