summaryrefslogtreecommitdiff
path: root/src/errors.rs
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2021-03-30 09:20:29 +0300
committerLars Wirzenius <liw@liw.fi>2021-03-30 12:04:20 +0300
commitdc0f531545a255fb4543e0d0697e318efc9cf791 (patch)
treeaab56c799f6ffc4e76fbc6eff180f23918343366 /src/errors.rs
parente139b4f8f89ebc718947542949f891415c423ef7 (diff)
downloadbumper-rs-dc0f531545a255fb4543e0d0697e318efc9cf791.tar.gz
fix: report project name and location when setting version for Rust
Diffstat (limited to 'src/errors.rs')
-rw-r--r--src/errors.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/errors.rs b/src/errors.rs
index 282b5c5..0652adf 100644
--- a/src/errors.rs
+++ b/src/errors.rs
@@ -26,6 +26,9 @@ pub enum BumperError {
#[error("'project' in Cargo.toml is not a table")]
ProjectNotTable,
+ #[error("Cargo.toml doesn't specify a package name")]
+ UnnamedProject,
+
#[error("Failed to run git: {0}")]
GitInvoke(#[source] std::io::Error),