diff options
author | Lars Wirzenius <liw@liw.fi> | 2021-03-30 09:41:46 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2021-03-30 12:04:20 +0300 |
commit | 2d90bc71cdcb952cc76df03031755fd62ee309c8 (patch) | |
tree | ba420167d32c8a17a9229b470a537b382e793432 /src/errors.rs | |
parent | dc0f531545a255fb4543e0d0697e318efc9cf791 (diff) | |
download | bumper-rs-2d90bc71cdcb952cc76df03031755fd62ee309c8.tar.gz |
feat: report absolute path when setting version for Rust
Diffstat (limited to 'src/errors.rs')
-rw-r--r-- | src/errors.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/errors.rs b/src/errors.rs index 0652adf..c7febe3 100644 --- a/src/errors.rs +++ b/src/errors.rs @@ -29,6 +29,9 @@ pub enum BumperError { #[error("Cargo.toml doesn't specify a package name")] UnnamedProject, + #[error("Couldn't turn {0} into an absolute path: {1}")] + AbsPath(PathBuf, #[source] std::io::Error), + #[error("Failed to run git: {0}")] GitInvoke(#[source] std::io::Error), |