fix: return err if openState errors

This commit is contained in:
ayn2op 2023-11-28 21:10:04 +05:30
parent 0b66b2aca9
commit 2f0851bcad

View file

@ -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)