Skip to content
This repository has been archived by the owner on Apr 29, 2024. It is now read-only.

Commit

Permalink
Only show exit failure if there's no error
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisdone committed Jan 13, 2014
1 parent ce4f431 commit 9845503
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TryHaskell.hs
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ mueval typeOnly e =
case drop 1 (T.lines out) of
[typ,value'] -> return (Right (T.pack e,typ,value'))
_ -> return (Left ("Unable to get type and value of expression: " <> T.pack e))
ExitFailure{} -> return (Left (out <> " " <> T.pack (show status)))
ExitFailure{} -> return (Left (out <> if out == "" then " " <> T.pack (show status) else ""))
where options importsfp =
["-i","-t","1","--expression",e] ++
["--no-imports","-l",importsfp] ++
Expand Down

0 comments on commit 9845503

Please sign in to comment.