wasp cli now exits with code 1 on internal errors.

This commit is contained in:
Martin Sosic 2023-06-23 12:44:43 +02:00
parent 7c0d13d242
commit afb148e19d

View File

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