forked from near/nearcore
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: exit with nonzero code on init cmd error (near#8334)
near#5967 refactored things so that the init command wouldn't panic on normal/expected errors, but it inadvertenly changed things so that we always get exit code 0 even when the command fails, which is quite sad. So just return an `anyhow::Error` from `InitCmd::run()`
- Loading branch information
1 parent
fe4c0a8
commit 9aeab12
Showing
1 changed file
with
6 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters