[pygi] Change SCOPE_TYPE_INVALID handling to be a more verbose error.
- From: Zach Goldberg <zgoldberg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygi] Change SCOPE_TYPE_INVALID handling to be a more verbose error.
- Date: Mon, 26 Apr 2010 16:39:07 +0000 (UTC)
commit 2b12049306bf57513c43d08017185468bf897a4a
Author: Zach Goldberg <zach zachgoldberg com>
Date: Tue Apr 20 22:57:14 2010 -0400
Change SCOPE_TYPE_INVALID handling to be a more verbose error.
(Previous commit did not include the proper error message. I blame git-bz)
https://bugzilla.gnome.org/show_bug.cgi?id=616356
gi/pygi-closure.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gi/pygi-closure.c b/gi/pygi-closure.c
index a853df0..caef5ea 100644
--- a/gi/pygi-closure.c
+++ b/gi/pygi-closure.c
@@ -148,8 +148,8 @@ end:
async_free_list = g_slist_prepend(async_free_list, closure);
break;
default:
- /* Invalid scope type. Perhaps a typo in the annotation? */
- g_warn_if_reached();
+ g_error("Invalid scope reached inside %s. Possibly a bad annotation?",
+ g_base_info_get_name(closure->info));
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]