Diff between d20ee8273e61e16c78582344f274254973cdf00f and b0ebdd778b06a71c1cbc2fcf30d7fe5842e749fb

Changed Files

File Additions Deletions Status
src/profile.c +3 -2 modified

Full Patch

diff --git a/src/profile.c b/src/profile.c
index c2992e7..6961a10 100644
--- a/src/profile.c
+++ b/src/profile.c
@@ -1085,12 +1085,13 @@ static void ext_connect(GIOChannel *io, GError *err, gpointer user_data)
 	if (!bt_io_get(io, &io_err,
 				BT_IO_OPT_DEST, addr,
 				BT_IO_OPT_INVALID)) {
-		error("Unable to get connect data for %s: %s", ext->name,
-							io_err->message);
 		if (err) {
+			error("%s failed %s", ext->name, err->message);
 			g_error_free(io_err);
 			io_err = NULL;
 		} else {
+			error("Unable to get connect data for %s: %s",
+				ext->name, io_err->message);
 			err = io_err;
 		}
 		goto drop;