[gegl] gegl: provide parsing error for missing format
- From: Øyvind Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] gegl: provide parsing error for missing format
- Date: Mon, 27 Nov 2017 14:23:51 +0000 (UTC)
commit b69cca65a08ea46e006b974ca0bfa9fa0516bc34
Author: Øyvind Kolås <pippin gimp org>
Date: Mon Nov 27 15:23:11 2017 +0100
gegl: provide parsing error for missing format
gegl/gegl-serialize.c | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/gegl/gegl-serialize.c b/gegl/gegl-serialize.c
index ee56f67..23b69a4 100644
--- a/gegl/gegl-serialize.c
+++ b/gegl/gegl-serialize.c
@@ -492,6 +492,15 @@ gegl_create_chain_argv (char **ops,
if (value[0] && babl_format_exists (value))
format = babl_format (value);
+ else
+ {
+ char *error_str = g_strdup_printf (
+ "BablFormat \"%s\" doest not exist.", value);
+ *error = g_error_new_literal (
+ g_quark_from_static_string ( "gegl"),
+ 0, error_str);
+ g_free (error_str);
+ }
gegl_node_set (iter[level], key, format, NULL);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]