Fix error handling

This commit is contained in:
Julian Ospald 2020-01-31 18:23:01 +01:00
parent 6ab8d721b4
commit fadc0f84bf
No known key found for this signature in database
GPG Key ID: 511B62C09D50CD28
1 changed files with 4 additions and 3 deletions

View File

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