Skip to content

Commit

Permalink
Enable error suppression for dumpJSONInstanceIcon again (#10121)
Browse files Browse the repository at this point in the history
- Errors where temporarily enabled for debugging, but are not longer
  needed.
  • Loading branch information
perost committed Jan 30, 2023
1 parent e469b0c commit 35f5dc3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions OMCompiler/Compiler/Script/NFApi.mo
Expand Up @@ -1049,7 +1049,7 @@ algorithm
// Instantiate the scope if the annotation contains component references that
// we need to be able to look up.
if not annotation_is_literal then
//ErrorExt.setCheckpoint(getInstanceName());
ErrorExt.setCheckpoint(getInstanceName());
try
context := InstContext.set(NFInstContext.CLASS, NFInstContext.RELAXED);
scope := InstNode.setNodeType(InstNodeType.ROOT_CLASS(InstNode.EMPTY_NODE()), scope);
Expand All @@ -1058,7 +1058,7 @@ algorithm
Inst.instExpressions(scope, context = context);
else
end try;
//ErrorExt.rollBack(getInstanceName());
ErrorExt.rollBack(getInstanceName());
end if;

json := dumpJSONCommentOpt(cmt, scope, json, failOnError = true);
Expand Down

0 comments on commit 35f5dc3

Please sign in to comment.