Skip to content
Snippets Groups Projects
Commit 38b12793 authored by Markus Alexander Kuppe's avatar Markus Alexander Kuppe
Browse files

TLC reports bogus "Wrong invocation of TLC error printer. Error code not

found." for some runtime errors.

[Bug][TLC]
parent 4111431a
No related branches found
No related tags found
No related merge requests found
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
package util; package util;
import tlc2.output.EC;
import tlc2.output.MP; import tlc2.output.MP;
/** /**
...@@ -101,7 +102,7 @@ public class Assert ...@@ -101,7 +102,7 @@ public class Assert
{ {
if (!condition) if (!condition)
{ {
throw new TLCRuntimeException(MP.getMessage(errorCode)); throw new TLCRuntimeException(errorCode, MP.getMessage(errorCode));
} }
} }
...@@ -135,7 +136,7 @@ public class Assert ...@@ -135,7 +136,7 @@ public class Assert
public TLCRuntimeException(String errorMsg) { public TLCRuntimeException(String errorMsg) {
super(errorMsg); super(errorMsg);
this.errorCode = -1; // Unknown error code. this.errorCode = EC.GENERAL; // Unknown error code.
} }
public TLCRuntimeException(int errorCode, String message) { public TLCRuntimeException(int errorCode, String message) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment