summaryrefslogtreecommitdiffstats
path: root/module/zfs/zcp_get.c
diff options
context:
space:
mode:
Diffstat (limited to 'module/zfs/zcp_get.c')
-rw-r--r--module/zfs/zcp_get.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/module/zfs/zcp_get.c b/module/zfs/zcp_get.c
index 44c4e82c2..311875583 100644
--- a/module/zfs/zcp_get.c
+++ b/module/zfs/zcp_get.c
@@ -207,7 +207,7 @@ get_dsl_dir_prop(dsl_dataset_t *ds, zfs_prop_t zfs_prop,
break;
default:
mutex_exit(&dd->dd_lock);
- return (ENOENT);
+ return (SET_ERROR(ENOENT));
}
mutex_exit(&dd->dd_lock);
return (0);
@@ -669,7 +669,7 @@ zcp_get_userquota_prop(lua_State *state, dsl_pool_t *dp,
if ((value == 0) && ((type == ZFS_PROP_USERQUOTA) ||
(type == ZFS_PROP_GROUPQUOTA)))
- error = ENOENT;
+ error = SET_ERROR(ENOENT);
if (error != 0) {
return (zcp_handle_error(state, dataset_name,
prop_name, error));