Sfoglia il codice sorgente

fix: return err if openState errors

ayn2op 2 anni fa
parent
commit
2f0851bcad
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      cmd/run.go

+ 1 - 1
cmd/run.go

@@ -55,7 +55,7 @@ func Run(token string) error {
 	} else {
 		mainFlex = newMainFlex()
 		if err := openState(token); err != nil {
-			app.Stop()
+			return err
 		}
 
 		app.SetRoot(mainFlex, true)