From 19cb8fcd22e9d2bc240cbd2b23efa2e19cf7ea52 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Mon, 5 Apr 2021 11:47:03 +0300 Subject: feat: update Cargo.lock int Rust projects If we update Cargo.toml, but not Cargo.lock, and Cargo.lock is in git, when cargo publish will refuse to publish, because the files are out of sync. --- src/errors.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/errors.rs') diff --git a/src/errors.rs b/src/errors.rs index 6ea498d..bd09eba 100644 --- a/src/errors.rs +++ b/src/errors.rs @@ -43,4 +43,10 @@ pub enum BumperError { #[error("dch failed in {0}: {1}")] Dch(PathBuf, String), + + #[error("Failed to run cargo in {0}: {1}")] + CargoInvoke(PathBuf, #[source] std::io::Error), + + #[error("cargo failed in {0}: {1}")] + Cargo(PathBuf, String), } -- cgit v1.2.1