[pygobject/gsoc2009: 56/160] Add an error prefix for array items and correct a format
- From: Simon van der Linden <svdlinden src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [pygobject/gsoc2009: 56/160] Add an error prefix for array items and correct a format
- Date: Fri, 14 Aug 2009 21:26:47 +0000 (UTC)
commit 54a8b11d9095495891012ef769f6ae2ca689be7b
Author: Simon van der Linden <svdlinden src gnome org>
Date: Thu Jul 23 10:47:04 2009 +0200
Add an error prefix for array items and correct a format
gi/pygargument.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gi/pygargument.c b/gi/pygargument.c
index d2a9817..8e264c9 100644
--- a/gi/pygargument.c
+++ b/gi/pygargument.c
@@ -1179,6 +1179,7 @@ struct_error_clean:
py_item = pygi_g_argument_to_py_object(item, item_type_info);
if (py_item == NULL) {
Py_CLEAR(object);
+ PyErr_PREFIX_FROM_FORMAT("Item %zu :", i);
break;
}
@@ -1215,7 +1216,7 @@ struct_error_clean:
py_item = pygi_g_argument_to_py_object(item, item_type_info);
if (py_item == NULL) {
Py_CLEAR(object);
- PyErr_PREFIX_FROM_FORMAT("Item %zd :", i);
+ PyErr_PREFIX_FROM_FORMAT("Item %zu :", i);
break;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]