diff options
author | Lars Wirzenius <liw@liw.fi> | 2021-04-22 05:43:18 +0000 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2021-04-22 05:43:18 +0000 |
commit | 4427fe12410f911a9c8f18ea7b3c9643c88f6d5f (patch) | |
tree | e05affad9e645047bddee6a93ca69e11445f50fa /src/errors.rs | |
parent | 1600a727446867029451df6f8a181b5a07709efb (diff) | |
parent | 24574aef2299925c10eeb9d20a942f36d1d806d4 (diff) | |
download | bumper-rs-4427fe12410f911a9c8f18ea7b3c9643c88f6d5f.tar.gz |
Merge branch 'tagname-take2' into 'main'
make git tag name be configurable via a template
Closes #1
See merge request larswirzenius/bumper!19
Diffstat (limited to 'src/errors.rs')
-rw-r--r-- | src/errors.rs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/errors.rs b/src/errors.rs index 97ed8d8..a296afd 100644 --- a/src/errors.rs +++ b/src/errors.rs @@ -2,6 +2,9 @@ use std::path::PathBuf; #[derive(Debug, thiserror::Error)] pub enum BumperError { + #[error("Tag pattern is not ASCII: {0}")] + TagPatternNotAscii(String), + #[error("Can't figure out what kind of project: {0}")] UnknownProjectKind(PathBuf), @@ -44,6 +47,18 @@ pub enum BumperError { #[error("dch failed in {0}: {1}")] Dch(PathBuf, String), + #[error("Failed to run dpkg-parsechangelog in {0}: {1}")] + ParseChangelogInvoke(PathBuf, #[source] std::io::Error), + + #[error("dpkg-parsechangelog failed in {0}: {1}")] + ParseChangelog(PathBuf, String), + + #[error("Failed to run setup.py in {0}: {1}")] + Setupnvoke(PathBuf, #[source] std::io::Error), + + #[error("setup.py failed in {0}: {1}")] + Setup(PathBuf, String), + #[error("Failed to run cargo in {0}: {1}")] CargoInvoke(PathBuf, #[source] std::io::Error), |