提交 2ff5cffe 编写于 作者: C Chris Lalancette

Better error message when libvirtd fails to start.

Signed-off-by: NChris Lalancette <clalance@redhat.com>
上级 4ed2c377
...@@ -2972,7 +2972,9 @@ int main(int argc, char **argv) { ...@@ -2972,7 +2972,9 @@ int main(int argc, char **argv) {
if (mkdir (rundir, 0755)) { if (mkdir (rundir, 0755)) {
if (errno != EEXIST) { if (errno != EEXIST) {
VIR_ERROR0 (_("unable to create rundir")); char ebuf[1024];
VIR_ERROR(_("unable to create rundir %s: %s"), rundir,
virStrerror(errno, ebuf, sizeof(ebuf)));
return -1; return -1;
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册