mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
Better error message when libvirtd fails to start.
Signed-off-by: Chris Lalancette <clalance@redhat.com>
This commit is contained in:
parent
4ed2c3773e
commit
2ff5cffe6e
@ -2972,7 +2972,9 @@ int main(int argc, char **argv) {
|
||||
|
||||
if (mkdir (rundir, 0755)) {
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user