summaryrefslogtreecommitdiffstats
path: root/bin/gui/control.c
diff options
context:
space:
mode:
Diffstat (limited to 'bin/gui/control.c')
-rw-r--r--bin/gui/control.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/bin/gui/control.c b/bin/gui/control.c
index 1cb4dab..5f4416e 100644
--- a/bin/gui/control.c
+++ b/bin/gui/control.c
@@ -1117,7 +1117,12 @@ create_main_window (GtkBuilder *builder, const gchar* camera_name)
camera = uca_plugin_manager_get_camera (plugin_manager, camera_name, &error, NULL);
if ((camera == NULL) || (error != NULL)) {
- g_error ("%s\n", error->message);
+ if (error) {
+ g_error ("%s\n", error->message);
+ }
+ else {
+ g_error ("Failed to load '%s' camera plugin for an unknown reason\n", camera_name);
+ }
gtk_main_quit ();
}