mirror of
https://github.com/Z3Prover/z3
synced 2025-04-08 10:25:18 +00:00
fix build break: throw only on invalid model
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
a59ed0fc2f
commit
b56837e09b
|
@ -1658,7 +1658,9 @@ void cmd_context::validate_model() {
|
|||
invalid_model = true;
|
||||
}
|
||||
}
|
||||
throw cmd_exception("an invalid model was generated");
|
||||
if (invalid_model) {
|
||||
throw cmd_exception("an invalid model was generated");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue