Fix error handling
This commit is contained in:
parent
6ab8d721b4
commit
fadc0f84bf
@ -124,9 +124,10 @@ main = do
|
||||
run e = do
|
||||
settings <-
|
||||
exceptT
|
||||
( const die
|
||||
. color Red
|
||||
$ "Could not get settings, make sure to run 'ghup config' first"
|
||||
(\_ ->
|
||||
die
|
||||
. color Red
|
||||
$ "Could not get settings, make sure to run 'ghup config' first"
|
||||
)
|
||||
pure
|
||||
$ getSettings
|
||||
|
Loading…
Reference in New Issue
Block a user