Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tlatools
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
general
stups
tlatools
Commits
38b12793
Commit
38b12793
authored
5 years ago
by
Markus Alexander Kuppe
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
tlatools/org.lamport.tlatools/src/util/Assert.java
+3
-2
3 additions, 2 deletions
tlatools/org.lamport.tlatools/src/util/Assert.java
with
3 additions
and
2 deletions
tlatools/org.lamport.tlatools/src/util/Assert.java
+
3
−
2
View file @
38b12793
...
@@ -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
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment