mirror of
https://github.com/Z3Prover/z3
synced 2025-06-08 15:13:23 +00:00
make error message more descriptive
This commit is contained in:
parent
6df711254b
commit
3900c03b72
1 changed files with 1 additions and 1 deletions
|
@ -122,7 +122,7 @@ bool array_decl_plugin::is_array_sort(sort* s) const {
|
||||||
|
|
||||||
func_decl * array_decl_plugin::mk_const(sort * s, unsigned arity, sort * const * domain) {
|
func_decl * array_decl_plugin::mk_const(sort * s, unsigned arity, sort * const * domain) {
|
||||||
if (arity != 1) {
|
if (arity != 1) {
|
||||||
m_manager->raise_exception("invalid const array definition, invalid domain size");
|
m_manager->raise_exception("invalid const array definition, expected one argument");
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
if (!is_array_sort(s)) {
|
if (!is_array_sort(s)) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue