From 80f2ccc9eddc23645c7452ff3de1806f1b88d066 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Kl=C3=A4hn?= <39526136+Septias@users.noreply.github.com> Date: Thu, 14 Apr 2022 12:32:44 +0200 Subject: [PATCH] improve error message (#3217) use actual path instead of placeholder --- src/accounts.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/accounts.rs b/src/accounts.rs index 9340b0c18..ee13701f5 100644 --- a/src/accounts.rs +++ b/src/accounts.rs @@ -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