summaryrefslogtreecommitdiffstats
path: root/ucad.c
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2017-04-07 14:27:55 +0200
committerMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2017-04-07 14:27:55 +0200
commit014f4b8346baadf9537cc714490102b1ee5626a1 (patch)
tree2f7a36d7a3ac30fe0f6d0e42b283bf21af87ad67 /ucad.c
parent172f7ec44ee2f5d317641ad3905af869b1893e85 (diff)
downloaduca-net-014f4b8346baadf9537cc714490102b1ee5626a1.tar.gz
uca-net-014f4b8346baadf9537cc714490102b1ee5626a1.tar.bz2
uca-net-014f4b8346baadf9537cc714490102b1ee5626a1.tar.xz
uca-net-014f4b8346baadf9537cc714490102b1ee5626a1.zip
ucad: print error if serve returns unexpectedly
Diffstat (limited to 'ucad.c')
-rw-r--r--ucad.c4
1 files changed, 4 insertions, 0 deletions
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);