From 9bb71a4051e4d377dad2993f4f3ee6635dfec132 Mon Sep 17 00:00:00 2001 From: Noah Martin Date: Tue, 30 Jan 2024 10:01:42 -0500 Subject: [PATCH] Improve rename error message (#723) --- Sources/tart/Commands/Rename.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/tart/Commands/Rename.swift b/Sources/tart/Commands/Rename.swift index d8f9340..1f2c068 100644 --- a/Sources/tart/Commands/Rename.swift +++ b/Sources/tart/Commands/Rename.swift @@ -24,7 +24,7 @@ struct Rename: AsyncParsableCommand { } if localStorage.exists(newName) { - throw ValidationError("failed to rename VM \(name), target VM \(name) already exists, delete it first!") + throw ValidationError("failed to rename VM \(name), target VM \(newName) already exists, delete it first!") } try localStorage.rename(name, newName)