Skip to content

Commit

Permalink
Improve rename error message (#723)
Browse files Browse the repository at this point in the history
  • Loading branch information
noahsmartin authored Jan 30, 2024
1 parent 18d462d commit 9bb71a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/tart/Commands/Rename.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9bb71a4

Please sign in to comment.