Merge pull request #59335 from kitaisreal/volume-constructor-improve-exception-message

IVolume constructor improve exception message
This commit is contained in:
Raúl Marín 2024-01-29 18:25:57 +01:00 committed by GitHub
commit f22762fcdc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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