forked from GitHub/gf-core
improved error message in the Python binding
This commit is contained in:
@@ -1156,7 +1156,7 @@ Concr_bracketedLinearize(ConcrObject* self, PyObject *args)
|
|||||||
pgf_lzr_concretize(self->concr, pyexpr->expr, tmp_pool);
|
pgf_lzr_concretize(self->concr, pyexpr->expr, tmp_pool);
|
||||||
PgfCncTree ctree = gu_next(cts, PgfCncTree, tmp_pool);
|
PgfCncTree ctree = gu_next(cts, PgfCncTree, tmp_pool);
|
||||||
if (gu_variant_is_null(ctree)) {
|
if (gu_variant_is_null(ctree)) {
|
||||||
PyErr_SetString(PGFError, "The abstract tree cannot be linearized");
|
PyErr_SetString(PGFError, "The abstract tree cannot be concretized");
|
||||||
gu_pool_free(tmp_pool);
|
gu_pool_free(tmp_pool);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user