near-cli icon indicating copy to clipboard operation
near-cli copied to clipboard

fix: throw exception and then return exit(1) on call with error

Open kalloc opened this issue 3 years ago • 0 comments

Hi!

I found the missing process.exit(1) after an error during functionCall.

Expected example:

./bin/near call usn unknown_method '{}' --accountId kalloc.testnet > /dev/null;echo $?
        Failure [usn]: Error: Can't complete the action because account usn doesn't exist
…
}
1

kalloc avatar Apr 22 '22 08:04 kalloc