Skip to content

Commit

Permalink
fix(contract): don't show stacktrace if static contract call failed
Browse files Browse the repository at this point in the history
  • Loading branch information
davidyuk committed Apr 11, 2024
1 parent fb8cac1 commit 694d400
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/utils/CliError.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { InvalidPasswordError } from '@aeternity/aepp-sdk';
import { InvalidPasswordError, NodeInvocationError } from '@aeternity/aepp-sdk';
import { setCommandOptions } from './config.js';
import { prepareOptions } from './default-option-description.js';

Expand All @@ -18,6 +18,7 @@ export async function runProgram(program) {
if (
error instanceof CliError
|| error instanceof InvalidPasswordError
|| error instanceof NodeInvocationError
|| error.code === 'ENOENT'
) {
program.error(error.message);
Expand Down

0 comments on commit 694d400

Please sign in to comment.