Fixed error message for incorrect memory (#426)

This commit is contained in:
Fedor Korotkov 2023-02-27 09:32:40 -05:00 committed by GitHub
parent 2be5eedeb6
commit 1f35a9b35e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -147,7 +147,7 @@ struct VMConfig: Codable {
mutating func setMemory(memorySize: UInt64) throws {
if memorySize < memorySizeMin {
throw LessThanMinimalResourcesError("VM should have \(memorySizeMin) bytes"
+ " of memory at minimum (requested \(memorySizeMin))")
+ " of memory at minimum (requested \(memorySize))")
}
self.memorySize = memorySize