diff --git a/src/storage/storage_backend_fs.c b/src/storage/storage_backend_fs.c index c9f25de182..ed3964bbbd 100644 --- a/src/storage/storage_backend_fs.c +++ b/src/storage/storage_backend_fs.c @@ -362,8 +362,13 @@ virStorageBackendFileSystemIsValid(virStoragePoolObjPtr pool) } } else { if (pool->def->source.ndevice != 1) { - virReportError(VIR_ERR_INTERNAL_ERROR, - "%s", _("missing source device")); + if (pool->def->source.ndevice == 0) + virReportError(VIR_ERR_INTERNAL_ERROR, "%s", + _("missing source device")); + else + virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", + _("expected exactly 1 device for the " + "storage pool")); return -1; } }