Browse Source

storage-node: cli better error log on command failure

Mokhtar Naamani 4 years ago
parent
commit
4be838e74e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      storage-node/packages/cli/src/cli.ts

+ 1 - 1
storage-node/packages/cli/src/cli.ts

@@ -124,7 +124,7 @@ export async function main() {
     try {
       await commands[command](api, ...args)
     } catch (err) {
-      console.error(`Command Failed: ${err}`)
+      console.error('Command Failed:', err)
       process.exit(-1)
     }
   } else {