Improve the presentation of the measurement listing from the CLI
This commit is contained in:
+6
-1
@@ -3,6 +3,7 @@ package main
|
||||
import (
|
||||
// commands
|
||||
|
||||
"github.com/apex/log"
|
||||
_ "github.com/ooni/probe-cli/internal/cli/geoip"
|
||||
_ "github.com/ooni/probe-cli/internal/cli/info"
|
||||
_ "github.com/ooni/probe-cli/internal/cli/list"
|
||||
@@ -19,5 +20,9 @@ import (
|
||||
)
|
||||
|
||||
func main() {
|
||||
crashreport.CapturePanicAndWait(app.Run, nil)
|
||||
err, _ := crashreport.CapturePanic(app.Run, nil)
|
||||
if err != nil {
|
||||
log.WithError(err.(error)).Error("panic in app.Run")
|
||||
crashreport.Wait()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user