Enable coverage for failure cases
This commit is contained in:
@@ -179,9 +179,11 @@ func doMain() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
var osExit = os.Exit
|
||||
|
||||
func main() {
|
||||
err := doMain()
|
||||
if err != nil {
|
||||
os.Exit(1)
|
||||
osExit(1)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user