-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathuplc.patch
23 lines (22 loc) · 1.27 KB
/
uplc.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
diff --git a/plutus-core/executables/uplc/Main.hs b/plutus-core/executables/uplc/Main.hs
index 29c4b301bd..b80f96e2c3 100644
--- a/plutus-core/executables/uplc/Main.hs
+++ b/plutus-core/executables/uplc/Main.hs
@@ -209,7 +209,7 @@ runEval (EvalOptions inp ifmt printMode budgetMode traceMode outputMode timingMo
_ -> error "Timing evaluations returned inconsistent results"
handleResults t (res, budget, logs) = do
case res of
- Left err -> hPrint stderr err >> exitFailure
+ Left err -> hPrint stderr err
Right v -> writeToFileOrStd outputMode (show (getPrintMethod printMode v))
case budgetMode of
Silent -> pure ()
@@ -217,6 +217,9 @@ runEval (EvalOptions inp ifmt printMode budgetMode traceMode outputMode timingMo
case traceMode of
None -> pure ()
_ -> writeToFileOrStd outputMode (T.unpack (T.intercalate "\n" logs))
+ case res of
+ Left _ -> exitFailure
+ Right _ -> pure ()
----------------- Print examples -----------------------
runUplcPrintExample ::