[beast: 1/6] BEAST: provide a descriptive warning about unsupported aida parameters
- From: Tim Janik <timj src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [beast: 1/6] BEAST: provide a descriptive warning about unsupported aida parameters
- Date: Mon, 5 Oct 2015 22:51:32 +0000 (UTC)
commit 2d2fbc4a75fbc6a18c74ba0f074a6d9c9503d175
Author: Tim Janik <timj gnu org>
Date: Thu Sep 24 23:33:22 2015 +0200
BEAST: provide a descriptive warning about unsupported aida parameters
beast-gtk/bstparam.cc | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/beast-gtk/bstparam.cc b/beast-gtk/bstparam.cc
index 0e0ebfa..59dff8e 100644
--- a/beast-gtk/bstparam.cc
+++ b/beast-gtk/bstparam.cc
@@ -409,7 +409,8 @@ aida_parameter_binding_set_value (GxkParam *param, const GValue *value)
any.set (g_value_get_string (value));
break;
default:
- assert_unreached();
+ critical ("%s: unsupported type: %s", __func__, g_type_name (G_PARAM_SPEC_VALUE_TYPE (param->pspec)));
+ return;
}
apa->set (any);
}
@@ -447,7 +448,8 @@ aida_parameter_binding_get_value (GxkParam *param, GValue *param_value)
}
break;
default:
- assert_unreached();
+ critical ("%s: unsupported type: %s", __func__, g_type_name (G_PARAM_SPEC_VALUE_TYPE (param->pspec)));
+ return;
}
if (G_VALUE_TYPE (&value))
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]