summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSean E. Russell <ser@ser1.net>2021-03-02 03:06:39 -0600
committerSean E. Russell <ser@ser1.net>2021-03-02 03:06:39 -0600
commit94d5c2e33da1af733644932003d619a7ba537207 (patch)
treecdd447f9afb215e06d73ea2208c66aa86fbfa1f7
parent5e0f04882612dd28756449f5100068b1a6975d5d (diff)
Don't fail on extension startup
-rw-r--r--cmd/gotop/main.go11
1 files changed, 4 insertions, 7 deletions
diff --git a/cmd/gotop/main.go b/cmd/gotop/main.go
index c021515..3a33535 100644
--- a/cmd/gotop/main.go
+++ b/cmd/gotop/main.go
@@ -21,8 +21,8 @@ import (
"github.com/VictoriaMetrics/metrics"
jj "github.com/cloudfoundry-attic/jibber_jabber"
ui "github.com/gizak/termui/v3"
- "github.com/xxxserxxx/lingo"
"github.com/shibukawa/configdir"
+ "github.com/xxxserxxx/lingo"
"github.com/xxxserxxx/opflag"
"github.com/xxxserxxx/gotop/v4"
@@ -405,12 +405,9 @@ func run() int {
}
defer logfile.Close()
- errs := devices.Startup(conf.ExtensionVars)
- if len(errs) > 0 {
- for _, err := range errs {
- stderrLogger.Print(err)
- }
- return 1
+ // device initialization errors do not stop execution
+ for _, err := range devices.Startup(conf.ExtensionVars) {
+ stderrLogger.Print(err)
}
lstream, err := getLayout(conf)