mirror of
https://github.com/Z3Prover/z3
synced 2025-04-12 20:18:18 +00:00
extend error type message with more information - display the arguments that are passed
This commit is contained in:
parent
4c1a3fab64
commit
78f9e6b31a
|
@ -2250,7 +2250,9 @@ app * ast_manager::mk_app(func_decl * decl, unsigned num_args, expr * const * ar
|
||||||
if (type_error) {
|
if (type_error) {
|
||||||
std::ostringstream buffer;
|
std::ostringstream buffer;
|
||||||
buffer << "Wrong number of arguments (" << num_args
|
buffer << "Wrong number of arguments (" << num_args
|
||||||
<< ") passed to function " << mk_pp(decl, *this);
|
<< ") passed to function " << mk_pp(decl, *this) << " ";
|
||||||
|
for (unsigned i = 0; i < num_args; ++i)
|
||||||
|
buffer << "\narg: " << mk_pp(args[i], *this) << "\n";
|
||||||
throw ast_exception(std::move(buffer).str());
|
throw ast_exception(std::move(buffer).str());
|
||||||
}
|
}
|
||||||
app * r = nullptr;
|
app * r = nullptr;
|
||||||
|
|
Loading…
Reference in a new issue