Skip to content

Commit

Permalink
fix #6680
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolajBjorner committed Apr 11, 2023
1 parent ccc4f2d commit 58a2a9c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/parsers/smt2/smt2parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -372,8 +372,8 @@ namespace smt2 {
return true;
}
catch (scanner_exception & ex) {
SASSERT(ex.has_pos());
error(ex.line(), ex.pos(), ex.msg());
if (ex.has_pos())
error(ex.line(), ex.pos(), ex.msg());
++num_errors;
}
}
Expand Down

0 comments on commit 58a2a9c

Please sign in to comment.