Skip to content

Commit 6a443a1

Browse files
authored
fix: provides better error message for when replace is ran with keyword that does not exist (#679)
1 parent 463bb82 commit 6a443a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/q_cli/src/cli/chat/tools/fs_write.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ impl FsWrite {
7575
style::Print("\n"),
7676
)?;
7777
match matches.len() {
78-
0 => Err(eyre!("no occurrences of old_str were found")),
78+
0 => Err(eyre!("no occurrences of \"{old_str}\" were found")),
7979
1 => {
8080
let file = file.replacen(old_str, new_str, 1);
8181
fs.write(path, file).await?;

0 commit comments

Comments
 (0)