Skip to content

Commit d11b4fb

Browse files
committed
Message about switching to gsed will be displayed always
1 parent 5f1bac5 commit d11b4fb

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/sed/communication.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,12 +74,10 @@ impl SedCommunicator {
7474
// change executing path to "gsed" and try again.
7575
if self.options.sed_path.is_none() && sed_debug_command.len() == 0 {
7676
self.options.sed_path = Some(String::from("gsed"));
77-
if self.options.debug {
78-
eprintln!(
77+
eprintln!(
7978
"[Info] Sed failed and didn't return any output. As sed path wasn't specified, trying again with \"gsed\". If even that won't work, make sure \
8079
sed is able to process your script. Most common mistake is forgeting to use -E."
8180
);
82-
}
8381
return self.get_sed_output();
8482
}
8583

0 commit comments

Comments
 (0)