mirror of
				https://github.com/sharkdp/bat.git
				synced 2025-10-30 14:43:57 +00:00 
			
		
		
		
	Send errors to stderr (#3336)
* fix: send errors to stderr by default (#2561) Closes #2561 * chore: add changelog entry * chore: change PR id * chore: add github username * chore: cargo fmt... * chore: move changelog line to bugfixes
This commit is contained in:
		| @@ -450,6 +450,16 @@ fn stdin_to_stdout_cycle() -> io::Result<()> { | ||||
|     Ok(()) | ||||
| } | ||||
|  | ||||
| #[cfg(unix)] | ||||
| #[test] | ||||
| fn bat_error_to_stderr() { | ||||
|     bat() | ||||
|         .arg("/tmp") | ||||
|         .assert() | ||||
|         .failure() | ||||
|         .stderr(predicate::str::contains("[bat error]")); | ||||
| } | ||||
|  | ||||
| #[cfg(unix)] | ||||
| #[test] | ||||
| fn no_args_doesnt_break() { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user