From a6d9d1551fb54ee2cb190a62a989defaf3461dcc Mon Sep 17 00:00:00 2001 From: sharkdp Date: Tue, 21 Apr 2020 08:28:15 +0200 Subject: [PATCH] Improve error message --- src/printer.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/printer.rs b/src/printer.rs index ab64808d..e63d5877 100644 --- a/src/printer.rs +++ b/src/printer.rs @@ -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(), };