mirror of
https://github.com/wasp-lang/wasp.git
synced 2024-12-26 10:35:04 +03:00
wasp cli now exits with code 1 on internal errors.
This commit is contained in:
parent
7c0d13d242
commit
afb148e19d
@ -107,7 +107,9 @@ main = withUtf8 . (`E.catch` handleInternalErrors) $ do
|
||||
in threadDelay . (* microsecondsInASecond)
|
||||
|
||||
handleInternalErrors :: E.ErrorCall -> IO ()
|
||||
handleInternalErrors e = putStrLn $ "\nInternal Wasp error (bug in compiler):\n" ++ indent 2 (show e)
|
||||
handleInternalErrors e = do
|
||||
putStrLn $ "\nInternal Wasp error (bug in compiler):\n" ++ indent 2 (show e)
|
||||
exitFailure
|
||||
|
||||
{- ORMOLU_DISABLE -}
|
||||
printUsage :: IO ()
|
||||
|
Loading…
Reference in New Issue
Block a user