IVolume constructor improve exception message

This commit is contained in:
Maksim Kita 2024-01-29 15:32:22 +03:00
parent a51aa7b668
commit 5affd6af2e

View File

@ -46,7 +46,7 @@ IVolume::IVolume(
}
if (disks.empty())
throw Exception(ErrorCodes::NO_ELEMENTS_IN_CONFIG, "Volume must contain at least one disk");
throw Exception(ErrorCodes::NO_ELEMENTS_IN_CONFIG, "Volume {} must contain at least one disk", name);
}
std::optional<UInt64> IVolume::getMaxUnreservedFreeSpace() const