improve error message (#3217)

use actual path instead of placeholder
This commit is contained in:
Sebastian Klähn
2022-04-14 12:32:44 +02:00
committed by GitHub
parent b2e9e57859
commit 80f2ccc9ed

View File

@@ -54,7 +54,11 @@ impl Accounts {
ensure!(dir.exists().await, "directory does not exist");
let config_file = dir.join(CONFIG_NAME);
ensure!(config_file.exists().await, "accounts.toml does not exist");
ensure!(
config_file.exists().await,
"{:?} does not exist",
config_file
);
let config = Config::from_file(config_file)
.await