diff --git a/package-lock.json b/package-lock.json index 849f77a..24b4e55 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,6 +10,7 @@ "license": "ISC", "dependencies": { "@aeternity/aepp-sdk": "^13.3.0", + "@azure/core-rest-pipeline": "^1.15.2", "bignumber.js": "^9.1.2", "commander": "^12.0.0", "env-paths": "^3.0.0", @@ -165,9 +166,9 @@ } }, "node_modules/@azure/core-rest-pipeline": { - "version": "1.15.1", - "resolved": "https://registry.npmjs.org/@azure/core-rest-pipeline/-/core-rest-pipeline-1.15.1.tgz", - "integrity": "sha512-ZxS6i3eHxh86u+1eWZJiYywoN2vxvsSoAUx60Mny8cZ4nTwvt7UzVVBJO+m2PW2KIJfNiXMt59xBa59htOWL4g==", + "version": "1.15.2", + "resolved": "https://registry.npmjs.org/@azure/core-rest-pipeline/-/core-rest-pipeline-1.15.2.tgz", + "integrity": "sha512-BmWfpjc/QXc2ipHOh6LbUzp3ONCaa6xzIssTU0DwH9bbYNXJlGUL6tujx5TrbVd/QQknmS+vlQJGrCq2oL1gZA==", "dependencies": { "@azure/abort-controller": "^2.0.0", "@azure/core-auth": "^1.4.0", diff --git a/package.json b/package.json index 713a183..f6eb3e2 100644 --- a/package.json +++ b/package.json @@ -8,6 +8,7 @@ "type": "module", "dependencies": { "@aeternity/aepp-sdk": "^13.3.0", + "@azure/core-rest-pipeline": "^1.15.2", "bignumber.js": "^9.1.2", "commander": "^12.0.0", "env-paths": "^3.0.0", diff --git a/src/utils/CliError.js b/src/utils/CliError.js index eac96ff..23bafc6 100644 --- a/src/utils/CliError.js +++ b/src/utils/CliError.js @@ -1,3 +1,4 @@ +import { RestError } from '@azure/core-rest-pipeline'; import { InvalidPasswordError, NodeInvocationError } from '@aeternity/aepp-sdk'; import { setCommandOptions } from './config.js'; import { prepareOptions } from './default-option-description.js'; @@ -17,6 +18,7 @@ export async function runProgram(program) { } catch (error) { if ( error instanceof CliError + || error instanceof RestError || error instanceof InvalidPasswordError || error instanceof NodeInvocationError || error.code === 'ENOENT'