Return non-zero exit code on error
This commit is contained in:
1 parent
bc1a81b84b
commit
9152e00fab
8 files changed
+21
-21
No files matched your search
+1
-1
@@ -63,7 +63,7 @@ impl From<hyper::Error> for Error {
|
||||
#[macro_export]
|
||||
macro_rules! custom_error {
|
||||
($msg:literal $(,)?) => {
|
||||
Err(Error::CustomError($msg.to_string()))
|
||||
Err(Error::CustomError(format!($msg)))
|
||||
};
|
||||
($err:expr $(,)?) => {
|
||||
Err(Error::from($err))
|
||||
|
||||
Reference in new issue
Block a user