This repository has been archived by the owner on Apr 18, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: use os.Exit instead of panic for user errors
Before this change, when the user provided incorrect configuration, the binary produced by GoReleaser would abort with no meaningful error report: ``` ❯ ./build/saturn/l2node-darwin-arm64/saturn-l2 [1] 16654 killed ./build/saturn/l2node-darwin-arm64/saturn-l2 ``` In this commit, I am reworking error handling to print the error to stderr and exit the process with a non-zero exit code via `os.Exit`. Signed-off-by: Miroslav Bajtoš <[email protected]>
- Loading branch information