Skip to content

Commit

Permalink
Fail with specific exit-code on differences
Browse files Browse the repository at this point in the history
  • Loading branch information
pbrisbin committed Jul 31, 2024
1 parent 07520fe commit 0fb5da5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Restyler/CLI.hs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ main withApp run = do
failOnDifferences <- getFailOnDifferences

if failOnDifferences
then ExitFailure 1 <$ logError "Differences found"
then ExitFailure 228 <$ logError "Differences found"
else ExitSuccess <$ logWarn "Differences found"

exitHandler :: MonadLogger m => AnnotatedException SomeException -> m ExitCode
Expand Down

0 comments on commit 0fb5da5

Please sign in to comment.