Skip to content

Commit 3f016e4

Browse files
committed
print config file location if not present
1 parent 5478222 commit 3f016e4

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ The [latest release](https://github.com/mjibson/acre/releases/latest) is availab
1818

1919
# Configuration
2020

21-
Configuration (which servers to run) is handled by a file at `~/.config/acre.toml` (note: I'm not sure if this is true on OSX). The file should contain an array of `servers` objects with the fields:
21+
Configuration (which servers to run) is handled by a file at `~/.config/acre.toml` (note: I'm not sure if this is true on OSX, but the location will be printed in an error if it does not exist). The file should contain an array of `servers` objects with the fields:
2222

2323
- `name`: the name of the server.
2424
- `executable` (optional): the name of the binary to invoke. If not present, uses `name`.

src/main.rs

+3-4
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,9 @@ fn main() -> Result<()> {
3636
let config = match dir.find_config_file(ACRE_TOML) {
3737
Some(c) => c,
3838
None => {
39-
println!(
40-
"could not find {} in config location (maybe ~/.config/acre.toml)",
41-
ACRE_TOML,
42-
);
39+
let mut path = dir.get_config_home();
40+
path.push(ACRE_TOML);
41+
eprintln!("could not find {}", path.to_str().unwrap());
4342
std::process::exit(1);
4443
}
4544
};

0 commit comments

Comments
 (0)