Skip to content

Commit

Permalink
avoid error in Read instance and use pfail instead which causes nicer…
Browse files Browse the repository at this point in the history
… and more useful option error message to be shown
  • Loading branch information
fabb committed Feb 15, 2019
1 parent f28dd91 commit 6f1ca1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Types/Commands.hs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ instance Read BuildType where
case map toLower s of
"carthage" -> return Carthage
"podbuilder" -> return PodBuilder
a -> error $ "Unrecognized BuildType '" ++ a ++ "'"
_ -> pfail

data RomeListPayload = RomeListPayload { _listMode :: ListMode
, _listPlatforms :: [TargetPlatform]
Expand Down

0 comments on commit 6f1ca1d

Please sign in to comment.