mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 10:37:35 +03:00
When encountering EZFS_UNKNOWN, print the error text buffer anyway
Rather than just saying there was an internal error, provide any context we might have to the user to help them understand the issue. Reviewed-by: Ryan Moeller <ryan@ixsystems.com> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Allan Jude <allan@klarasystems.com> Closes #10632
This commit is contained in:
@@ -327,7 +327,8 @@ zfs_verror(libzfs_handle_t *hdl, int error, const char *fmt, va_list ap)
|
||||
if (hdl->libzfs_printerr) {
|
||||
if (error == EZFS_UNKNOWN) {
|
||||
(void) fprintf(stderr, dgettext(TEXT_DOMAIN, "internal "
|
||||
"error: %s\n"), libzfs_error_description(hdl));
|
||||
"error: %s: %s\n"), hdl->libzfs_action,
|
||||
libzfs_error_description(hdl));
|
||||
abort();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user