diff options
author | Teddy Wing | 2018-11-11 00:43:32 +0100 |
---|---|---|
committer | Teddy Wing | 2018-11-11 00:43:32 +0100 |
commit | f1c118535292fd7aba240713a4b869e00eaccc27 (patch) | |
tree | 7476b17f8a5beb9c3984892c3ce3001efe1b3c7e | |
parent | 0d1fea0bfa49b69b93c8b93fd895e084eade153f (diff) | |
download | dome-key-web-f1c118535292fd7aba240713a4b869e00eaccc27.tar.bz2 |
main(): Log error if stdin fails to read to string
-rw-r--r-- | license-generator/src/main.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/license-generator/src/main.rs b/license-generator/src/main.rs index 8636055..4e47c33 100644 --- a/license-generator/src/main.rs +++ b/license-generator/src/main.rs @@ -71,7 +71,10 @@ fn main() -> Result<()> { fastcgi::run(|mut req| { let mut params = String::new(); - req.stdin().read_to_string(&mut params).unwrap_or(0); + match req.stdin().read_to_string(&mut params) { + Ok(_) => (), + Err(e) => error!("{}", e), + } log_request(&req, ¶ms); |