Improve error messages

This commit is contained in:
mars 2022-03-23 16:19:51 -06:00
parent fcb2e19763
commit f9e228dc12
1 changed files with 2 additions and 2 deletions

View File

@ -146,7 +146,7 @@ fn main() {
url.set_query(Some(&encoded.to_string())); url.set_query(Some(&encoded.to_string()));
}, },
e => { e => {
eprintln!("Received error status {}", e); eprintln!("Received error status {} ({:?})", e, e);
std::process::exit(1); std::process::exit(1);
} }
} }
@ -164,7 +164,7 @@ fn main() {
} }
} }
} }
mime => { _ => {
eprintln!("Unsupported mime type {}", mime); eprintln!("Unsupported mime type {}", mime);
std::process::exit(1); std::process::exit(1);
} }