summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2020-10-02 20:59:29 +0200
committerJo-Philipp Wich <jo@mein.io>2020-10-02 20:59:29 +0200
commitb63acee35b7e284ca1df23295d18a9aa132db120 (patch)
tree4dbc30340215f6f478fac10115787df927bd7837
parent56c0a1a0647abc1f2bee1d64b92b4f25cab8290a (diff)
lib: fix incorrect exception type check in ut_include()
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
-rw-r--r--lib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib.c b/lib.c
index bc7080b..074562d 100644
--- a/lib.c
+++ b/lib.c
@@ -2067,7 +2067,7 @@ ut_include(struct ut_state *s, uint32_t off, struct json_object *args)
json_object_put(scope);
}
- if (ut_is_type(rv, UT_ERROR_EXCEPTION))
+ if (ut_is_type(rv, T_EXCEPTION))
return rv;
json_object_put(rv);