mirror of
https://github.com/sharkdp/bat.git
synced 2025-08-19 04:17:31 +02:00
Do not ignore non-existent BAT_CONFIG_PATH
Do not ignore `BAT_CONFIG_PATH` if it doesn't exist. Both when generating a new config file with `--generate-config-file` and when attempting to read the config. Also, provide a better error message in case the file can not be created. closes #1550
This commit is contained in:
@@ -652,6 +652,13 @@ fn config_location_test() {
|
||||
.assert()
|
||||
.success()
|
||||
.stdout("bat.conf\n");
|
||||
|
||||
bat_with_config()
|
||||
.env("BAT_CONFIG_PATH", "not-existing.conf")
|
||||
.arg("--config-file")
|
||||
.assert()
|
||||
.success()
|
||||
.stdout("not-existing.conf\n");
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
Reference in New Issue
Block a user