g_set_error (err,
CFG_RCL_ERROR,
EINVAL,
- "cannot convert param to double");
+ "cannot convert param %s to double", ucl_object_key (obj));
return FALSE;
}
g_set_error (err,
CFG_RCL_ERROR,
EINVAL,
- "cannot convert param to double");
+ "cannot convert param %s to double", ucl_object_key (obj));
return FALSE;
}
g_set_error (err,
CFG_RCL_ERROR,
EINVAL,
- "invalid flags to parse time value");
+ "invalid flags to parse time value in %s", ucl_object_key (obj));
return FALSE;
}
g_set_error (err,
CFG_RCL_ERROR,
EINVAL,
- "invalid string with keypair content");
+ "invalid string with keypair content for %s",
+ ucl_object_key (obj));
return FALSE;
}
}
g_set_error (err,
CFG_RCL_ERROR,
EINVAL,
- "no sane pubkey found in the keypair");
+ "no sane pubkey found in the keypair: %s",
+ ucl_object_key (obj));
return FALSE;
}
elt = ucl_object_find_key (obj, "privkey");
g_set_error (err,
CFG_RCL_ERROR,
EINVAL,
- "no sane privkey found in the keypair");
+ "no sane privkey found in the keypair: %s",
+ ucl_object_key (obj));
return FALSE;
}
}
g_set_error (err,
CFG_RCL_ERROR,
EINVAL,
- "no sane pubkey or privkey found in the keypair");
+ "no sane pubkey or privkey found in the keypair: %s",
+ ucl_object_key (obj));
return FALSE;
}
g_set_error (err,
CFG_RCL_ERROR,
EINVAL,
- "cannot load the keypair specified");
+ "cannot load the keypair specified: %s",
+ ucl_object_key (obj));
return FALSE;
}
g_set_error (err,
CFG_RCL_ERROR,
EINVAL,
- "cannot convert an object or array to string");
+ "cannot convert an object or array to string: %s",
+ ucl_object_key (obj));
return FALSE;
}
g_set_error (err,
CFG_RCL_ERROR,
EINVAL,
- "an array of strings is expected");
+ "an array of strings is expected: %s",
+ ucl_object_key (obj));
return FALSE;
}
}
else {
g_set_error (err,
- CFG_RCL_ERROR,
- EINVAL,
- "cannot convert an object to boolean");
+ CFG_RCL_ERROR,
+ EINVAL,
+ "cannot convert an object to boolean: %s",
+ ucl_object_key (obj));
return FALSE;
}
}
else {
g_set_error (err,
- CFG_RCL_ERROR,
- EINVAL,
- "cannot convert an object to inet address");
+ CFG_RCL_ERROR,
+ EINVAL,
+ "cannot convert an object to inet address: %s",
+ ucl_object_key (obj));
return FALSE;
}
g_set_error (err,
CFG_RCL_ERROR,
EINVAL,
- "cannot parse inet address: %s", val);
+ "cannot parse inet address: %s in %s", val,
+ ucl_object_key (obj));
ucl_object_iterate_free (it);
return FALSE;
g_set_error (err,
CFG_RCL_ERROR,
EINVAL,
- "cannot get inet address from ucl object");
+ "cannot get inet address from ucl object in %s",
+ ucl_object_key (obj));
ucl_object_iterate_free (it);
return FALSE;