mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-08-08 12:30:52 +08:00
Fixed exit status for missing files.
This commit is contained in:
@@ -99,7 +99,7 @@ formats = Map.fromList [
|
|||||||
toStatus = liftM (either id (const NoProblems)) . runErrorT
|
toStatus = liftM (either id (const NoProblems)) . runErrorT
|
||||||
|
|
||||||
catchExceptions :: IO Status -> IO Status
|
catchExceptions :: IO Status -> IO Status
|
||||||
catchExceptions action = action -- action `catch` handler
|
catchExceptions action = action `catch` handler
|
||||||
where
|
where
|
||||||
handler err = do
|
handler err = do
|
||||||
printErr $ show (err :: SomeException)
|
printErr $ show (err :: SomeException)
|
||||||
|
Reference in New Issue
Block a user