diff --git a/src/adapter.c b/src/adapter.c
index 49d1ae5..0cc3218 100644
--- a/src/adapter.c
+++ b/src/adapter.c
int adapter_init(void)
{
mgmt_master = mgmt_new_default();
- if (!mgmt_master)
+ if (!mgmt_master) {
+ error("Failed to access management interface");
return -EIO;
+ }
if (mgmt_send(mgmt_master, MGMT_OP_READ_VERSION,
MGMT_INDEX_NONE, 0, NULL,
diff --git a/src/main.c b/src/main.c
index 550d9bb..a07d221 100644
--- a/src/main.c
+++ b/src/main.c
}
if (adapter_init() < 0) {
- error("adapter init failed");
+ error("Adapter handling initialization failed");
exit(1);
}