mirror of
https://github.com/sharkdp/bat
synced 2024-11-04 18:00:24 +00:00
Improve error message
This commit is contained in:
parent
34619a2e89
commit
a6d9d1551f
@ -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(),
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user