Skip to content

Commit

Permalink
catch MiniZinc errors as well
Browse files Browse the repository at this point in the history
  • Loading branch information
ozgurakgun committed Mar 11, 2024
1 parent c50d7bf commit 6cb0e97
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Conjure/UI/SolveStats.hs
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ mkSolveStats Solve {..} (exitCodeSR, stdoutSR, stderrSR) rawInfo = do
let info = M.fromList [(k, v) | [k, v] <- map (splitOn ":") (lines rawInfo)]
status
| T.isInfixOf "type error: undefined identifier" combinedSR = Error
| T.isInfixOf "MiniZinc error" combinedSR = Error
| T.isInfixOf "java.lang.OutOfMemoryError" combinedSR = MemOut
| T.isInfixOf "Out of Memory" combinedSR = MemOut
| T.isInfixOf "Savile Row timed out." combinedSR = TimeOut
Expand Down

0 comments on commit 6cb0e97

Please sign in to comment.