mirror of https://github.com/cirruslabs/tart.git
Re-use legacyDiskV1MediaType in error message
This commit is contained in:
parent
c1462b760f
commit
424406a0bf
|
|
@ -32,7 +32,7 @@ extension VMDirectory {
|
|||
|
||||
// Pull VM's disk layers and decompress them into a disk file
|
||||
if manifest.layers.contains(where: { $0.mediaType == legacyDiskV1MediaType }) {
|
||||
throw RuntimeError.Generic("Pulling OCI images with legacy disk media type \"application/vnd.cirruslabs.tart.disk.v1\" is no longer supported, please re-push the image using a current Tart version")
|
||||
throw RuntimeError.Generic("Pulling OCI images with legacy disk media type \(legacyDiskV1MediaType) is no longer supported, please re-push the image using a current Tart version")
|
||||
}
|
||||
|
||||
let layers = manifest.layers.filter { $0.mediaType == diskV2MediaType }
|
||||
|
|
|
|||
Loading…
Reference in New Issue