Skip to content
Commit 9342b43c authored by Yo Chiang's avatar Yo Chiang
Browse files

bpmodify: fix os.Exit() shouldn't shadow panic()

The `defer func() { os.Exit() }()` in main() method shadows panic().
Make the exit handler recover() from panic(), log the panic(), and then
gracefully exit.

Test: m bpmodify
Change-Id: Icc89f8fce0b6096489baa0ba0f08c21d1ef623bc
parent aa919ddc
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment