aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2018-10-27 23:36:54 +0200
committerTeddy Wing2018-10-27 23:36:54 +0200
commit68870e724330bc95686d4957ad8ed2d043f30f4d (patch)
tree900354e9d62026b643904113a34daa3985d09795
parent0ffb9b4e26d4539ac8e3c4755e20237b72c6a6a9 (diff)
downloaddome-key-map-68870e724330bc95686d4957ad8ed2d043f30f4d.tar.bz2
dome_key_logger_init(): Log `Err` instead of `unwrap()`
Instead of just unwrapping, print the error message in our error format.
-rw-r--r--src/ffi.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ffi.rs b/src/ffi.rs
index 91a48c3..3772b65 100644
--- a/src/ffi.rs
+++ b/src/ffi.rs
@@ -39,7 +39,7 @@ pub extern "C" fn dome_key_logger_init() {
.color(stderrlog::ColorChoice::Never)
.timestamp(stderrlog::Timestamp::Millisecond)
.init()
- .unwrap();
+ .unwrap_or_else(|e| dkeprintln!("{}", e));
}
#[no_mangle]