diff options
| author | Teddy Wing | 2018-10-27 23:36:54 +0200 |
|---|---|---|
| committer | Teddy Wing | 2018-10-27 23:36:54 +0200 |
| commit | 68870e724330bc95686d4957ad8ed2d043f30f4d (patch) | |
| tree | 900354e9d62026b643904113a34daa3985d09795 /src | |
| parent | 0ffb9b4e26d4539ac8e3c4755e20237b72c6a6a9 (diff) | |
| download | dome-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.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ffi.rs | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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] |
