Skip to content

Commit

Permalink
Add requested version to error when the version cannot be found in tf…
Browse files Browse the repository at this point in the history
…List
  • Loading branch information
MatthewJohn committed May 31, 2024
1 parent ef7ab52 commit 427379f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ func InstallProductVersion(product Product, dryRun bool, version, customBinaryPa
if exist {
install(product, requestedVersion, customBinaryPath, installPath, mirrorURL)
} else {
logger.Fatal("The provided terraform version does not exist.\n Try `tfswitch -l` to see all available versions")
logger.Fatalf("The provided terraform version does not exist: %q.\n Try `tfswitch -l` to see all available versions", requestedVersion)
}
} else {
PrintInvalidTFVersion()
Expand Down

0 comments on commit 427379f

Please sign in to comment.