From d667d891e174cb353f335e2edbceed5e935206e3 Mon Sep 17 00:00:00 2001 From: Matthias Vogelgesang Date: Thu, 10 May 2012 16:09:19 +0200 Subject: Print more meaningful error message --- test/grab.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') diff --git a/test/grab.c b/test/grab.c index bcabd1a..12290de 100644 --- a/test/grab.c +++ b/test/grab.c @@ -43,7 +43,7 @@ int main(int argc, char *argv[]) camera = uca_camera_new("pco", &error); if (camera == NULL) { - g_print("Couldn't initialize camera\n"); + g_print("Error during initialization: %s\n", error->message); return 1; } -- cgit v1.2.3