aboutsummaryrefslogtreecommitdiff
path: root/authz/listfile.c
diff options
context:
space:
mode:
Diffstat (limited to 'authz/listfile.c')
-rw-r--r--authz/listfile.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/authz/listfile.c b/authz/listfile.c
index 1421e674a4..da3a0e69a2 100644
--- a/authz/listfile.c
+++ b/authz/listfile.c
@@ -73,7 +73,8 @@ qauthz_list_file_load(QAuthZListFile *fauthz, Error **errp)
pdict = qobject_to(QDict, obj);
if (!pdict) {
- error_setg(errp, QERR_INVALID_PARAMETER_TYPE, "obj", "dict");
+ error_setg(errp, "File '%s' must contain a JSON object",
+ fauthz->filename);
goto cleanup;
}