Skip to content

Commit

Permalink
Improve error message
Browse files Browse the repository at this point in the history
  • Loading branch information
sharkdp committed Apr 21, 2020
1 parent 34619a2 commit a6d9d15
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/printer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,10 @@ impl<'a> Printer for InteractivePrinter<'a> {
InputFile::Ordinary(ofile) => {
format!("file '{}'", &ofile.provided_path().to_string_lossy())
}
InputFile::StdIn(Some(name)) => name.to_string_lossy().into_owned(),
InputFile::StdIn(Some(name)) => format!(
"STDIN (with name '{}')",
name.to_string_lossy().into_owned()
),
InputFile::StdIn(None) => "STDIN".to_owned(),
InputFile::ThemePreviewFile => "".to_owned(),
};
Expand Down

0 comments on commit a6d9d15

Please sign in to comment.