near-cli
near-cli copied to clipboard
fix: throw exception and then return exit(1) on call with error
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