3
0
Fork 0
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:
Nikolaj Bjorner 2016-07-20 13:11:22 -07:00
parent a59ed0fc2f
commit b56837e09b

View file

@ -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");
}
}
}