[vte] vteapp: Warn when parsing the colour failed
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte] vteapp: Warn when parsing the colour failed
- Date: Mon, 14 Apr 2014 17:22:23 +0000 (UTC)
commit 4f7052edbe4d697d77c5f5fa8e0838f49374120f
Author: Christian Persch <chpe gnome org>
Date: Mon Apr 14 19:21:42 2014 +0200
vteapp: Warn when parsing the colour failed
src/app.vala | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/app.vala b/src/app.vala
index 7542cb1..1693354 100644
--- a/src/app.vala
+++ b/src/app.vala
@@ -645,8 +645,10 @@ class App : Gtk.Application
if (str == null)
return null;
var color = Gdk.RGBA();
- if (!color.parse(str))
+ if (!color.parse(str)) {
+ printerr("Failed to parse \"%s\" as color.\n", str);
return null;
+ }
return color;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]