on master help sign in
Improve error message
commita6d9d1551fb54ee2cb190a62a989defaf3461dcc authorsharkdp <davidpeter@web.de> dateTue 21 Apr 2020, 08:28 (7 years ago) parent34619a2
1 file changed+4−1
src/printer.rs+4−1
src/printer.rs+4−1
@@ -237,7 +237,10 @@ impl<'a> Printer for InteractivePrinter<'a> {
237237 InputFile::Ordinary(ofile) => {
238238 format!("file '{}'", &ofile.provided_path().to_string_lossy())
239239 }
240− InputFile::StdIn(Some(name)) => name.to_string_lossy().into_owned(),
240+ InputFile::StdIn(Some(name)) => format!(
241+ "STDIN (with name '{}')",
242+ name.to_string_lossy().into_owned()
243+ ),
241244 InputFile::StdIn(None) => "STDIN".to_owned(),
242245 InputFile::ThemePreviewFile => "".to_owned(),
243246 };