diff --git a/src/util/virscsivhost.c b/src/util/virscsivhost.c index d6fbf5ed5b213ccb603a1c64ce09cedc4a0c345b..5f176e177f44fb84069fd5cbacb43d9d68bb551e 100644 --- a/src/util/virscsivhost.c +++ b/src/util/virscsivhost.c @@ -86,8 +86,12 @@ VIR_ONCE_GLOBAL_INIT(virSCSIVHost) int virSCSIVHostOpenVhostSCSI(int *vhostfd) { - if (!virFileExists(VHOST_SCSI_DEVICE)) + if (!virFileExists(VHOST_SCSI_DEVICE)) { + virReportError(VIR_ERR_CONFIG_UNSUPPORTED, + _("vhost-scsi device file '%s' cannot be found"), + VHOST_SCSI_DEVICE); return -1; + } *vhostfd = open(VHOST_SCSI_DEVICE, O_RDWR);