From 014f4b8346baadf9537cc714490102b1ee5626a1 Mon Sep 17 00:00:00 2001 From: Matthias Vogelgesang Date: Fri, 7 Apr 2017 14:27:55 +0200 Subject: ucad: print error if serve returns unexpectedly --- ucad.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ucad.c') diff --git a/ucad.c b/ucad.c index 972afbe..c8499c0 100644 --- a/ucad.c +++ b/ucad.c @@ -449,6 +449,7 @@ main (int argc, char **argv) g_print ("Error setting properties: %s\n", error->message); goto cleanup_manager; } + if (error != NULL) g_print ("Error: %s\n", error->message); @@ -456,6 +457,9 @@ main (int argc, char **argv) serve (camera, port, &error); + if (error != NULL) + g_print ("Error: %s\n", error->message); + cleanup_camera: g_object_unref (camera); -- cgit v1.2.3