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: improve error reporting when port is in use
Before this change, when we could not start listening on webserver's TCP port, 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