From 13710b49cc40c0e78eec9a94ce9b0ea8a09c3860 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sun, 2 Aug 2020 00:47:53 +0200 Subject: git-sugpatch: Print error and exit on `Config::get` error Add `exitcode` to exit with an appropriate code. Add the `gseprintln` macro to wrap `eprintln!()`, prefixing the output with "error: ". --- Cargo.toml | 1 + 1 file changed, 1 insertion(+) (limited to 'Cargo.toml') diff --git a/Cargo.toml b/Cargo.toml index d0ce530..dccaa62 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,6 +4,7 @@ version = "0.0.1" edition = "2018" [dependencies] +exitcode = "1.1.2" getopts = "0.2.21" git2 = "0.13.8" regex = "1.3.9" -- cgit v1.2.3