mirror of
https://github.com/Z3Prover/z3
synced 2025-04-13 12:28:44 +00:00
Keep consistent error messages
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
dc5e532095
commit
d2651f1afc
|
@ -1849,9 +1849,9 @@ void ast_manager::check_sort(func_decl const * decl, unsigned num_args, expr * c
|
|||
sort * given = get_sort(args[i]);
|
||||
if (!compatible_sorts(expected, given)) {
|
||||
std::ostringstream buff;
|
||||
buff << "Invalid function application for " << decl->get_name() << ". ";
|
||||
buff << "Sort mismatch on argument at position " << (i+1) << ". ";
|
||||
buff << "Expected: " << mk_pp(expected, m) << " but given " << mk_pp(given, m);
|
||||
buff << "invalid function application for " << decl->get_name() << ", ";
|
||||
buff << "sort mismatch on argument at position " << (i+1) << ", ";
|
||||
buff << "expected " << mk_pp(expected, m) << " but given " << mk_pp(given, m);
|
||||
throw ast_exception(buff.str().c_str());
|
||||
}
|
||||
}
|
||||
|
@ -1865,9 +1865,9 @@ void ast_manager::check_sort(func_decl const * decl, unsigned num_args, expr * c
|
|||
sort * given = get_sort(args[i]);
|
||||
if (!compatible_sorts(expected, given)) {
|
||||
std::ostringstream buff;
|
||||
buff << "Invalid function application for " << decl->get_name() << ". ";
|
||||
buff << "Sort mismatch on argument at position " << (i+1) << ". ";
|
||||
buff << "Expected: " << mk_pp(expected, m) << " but given " << mk_pp(given, m);
|
||||
buff << "invalid function application for " << decl->get_name() << ", ";
|
||||
buff << "sort mismatch on argument at position " << (i+1) << ", ";
|
||||
buff << "expected " << mk_pp(expected, m) << " but given " << mk_pp(given, m);
|
||||
throw ast_exception(buff.str().c_str());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue