提交 558ffad5 编写于 作者: P Peter Krempa

storage: Improve error message when a storage backend is missing

Include the name of the storage backend in the error message instead of
just the number.
上级 af38f830
...@@ -1146,7 +1146,8 @@ virStorageBackendForType(int type) ...@@ -1146,7 +1146,8 @@ virStorageBackendForType(int type)
return backends[i]; return backends[i];
virReportError(VIR_ERR_INTERNAL_ERROR, virReportError(VIR_ERR_INTERNAL_ERROR,
_("missing backend for pool type %d"), type); _("missing backend for pool type %d (%s)"),
type, NULLSTR(virStoragePoolTypeToString(type)));
return NULL; return NULL;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册