diff options
Diffstat (limited to 'src/error.rs')
-rw-r--r-- | src/error.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/error.rs b/src/error.rs index e9a25a7..5a8ef70 100644 --- a/src/error.rs +++ b/src/error.rs @@ -1,12 +1,13 @@ +use std::path::PathBuf; // Module for errors using error_chain // Might be expanded in the future error_chain! { errors { - ConfigParseError(filename: String) { + ConfigParseError(path: PathBuf) { description("configuration file could not be parsed"), - display("configuration file could not be parsed: '{}'", filename), + display("configuration file could not be parsed: '{}'", path.display()), } } } |