aboutsummaryrefslogtreecommitdiffstats
path: root/lib/libzfs
diff options
context:
space:
mode:
authorRichard Yao <[email protected]>2012-04-24 15:13:47 -0400
committerBrian Behlendorf <[email protected]>2012-06-13 16:27:19 -0700
commitbc98d6c80944dcd920d1147e6bff2192e886a2f5 (patch)
tree6ad90e466315eeace023ffcf83066fa68f187c82 /lib/libzfs
parentd53574e568d70fc8c3d77cc711c306f91fd6abe8 (diff)
Make zvol_remove_link() print a more useful error message
Signed-off-by: Brian Behlendorf <[email protected]>
Diffstat (limited to 'lib/libzfs')
-rw-r--r--lib/libzfs/libzfs_dataset.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libzfs/libzfs_dataset.c b/lib/libzfs/libzfs_dataset.c
index 661f9b5f9..543437492 100644
--- a/lib/libzfs/libzfs_dataset.c
+++ b/lib/libzfs/libzfs_dataset.c
@@ -3955,7 +3955,7 @@ zvol_remove_link(libzfs_handle_t *hdl, const char *dataset)
default:
return (zfs_standard_error_fmt(hdl, errno,
dgettext(TEXT_DOMAIN, "cannot remove device "
- "links for '%s'"), dataset));
+ "links for '%s': %s"), dataset, strerror(errno)));
}
}