Make zvol_remove_link() print a more useful error message
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
This commit is contained in:
parent
d53574e568
commit
bc98d6c809
|
@ -3955,7 +3955,7 @@ zvol_remove_link(libzfs_handle_t *hdl, const char *dataset)
|
||||||
default:
|
default:
|
||||||
return (zfs_standard_error_fmt(hdl, errno,
|
return (zfs_standard_error_fmt(hdl, errno,
|
||||||
dgettext(TEXT_DOMAIN, "cannot remove device "
|
dgettext(TEXT_DOMAIN, "cannot remove device "
|
||||||
"links for '%s'"), dataset));
|
"links for '%s': %s"), dataset, strerror(errno)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue