Skip to content

Commit

Permalink
fix: don't show stacktraces for RestErrors
Browse files Browse the repository at this point in the history
  • Loading branch information
davidyuk committed Apr 15, 2024
1 parent f2fa210 commit e7f2e58
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
7 changes: 4 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 2 additions & 0 deletions src/utils/CliError.js
Original file line number Diff line number Diff line change
@@ -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';
Expand All @@ -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'
Expand Down

0 comments on commit e7f2e58

Please sign in to comment.