Skip to content

Commit dc8c54a

Browse files
authored
Clarify interactive install prompt source (#1523)
* fix(use): clarify interactive install prompt source * chore: add changeset for prompt clarification
1 parent 168e51f commit dc8c54a

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

.changeset/fair-carrots-greet.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"fnm": patch
3+
---
4+
5+
Clarify the interactive `fnm use` missing-version prompt by prefixing the message with `fnm` so it is obvious which tool is asking to install Node.

src/commands/use.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ fn should_install_interactively(requested_version: &UserVersion) -> bool {
181181
}
182182

183183
let error_message = format!(
184-
"Can't find an installed Node version matching {}.",
184+
"fnm can't find an installed Node version matching {}.",
185185
requested_version.to_string().italic()
186186
);
187187
eprintln!("{}", error_message.red());

0 commit comments

Comments
 (0)