From f25c695d2216a9991df5f271b3515e1d9761874a Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Wed, 6 Jul 2011 01:54:12 +0300 Subject: [PATCH] gobex: Print more informative disconnect message in test-client --- tools/obex-client-tool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/obex-client-tool.c b/tools/obex-client-tool.c index ea3e90480..f352294dc 100644 --- a/tools/obex-client-tool.c +++ b/tools/obex-client-tool.c @@ -61,7 +61,7 @@ static GOptionEntry options[] = { static void disconn_func(GObex *obex, GError *err, gpointer user_data) { - g_printerr("Disconnected\n"); + g_printerr("Disconnected: %s\n", err ? err->message : "(no error)"); g_main_loop_quit(main_loop); } -- 2.47.3