Return non-zero exit code on error

This commit is contained in:
trevyn committed 2022-08-27 11:18:44 +04:00
1 parent bc1a81b84b
commit 9152e00fab
8 files changed
+21 -21

No files matched your search

+1 -1
View File
@@ -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))