summaryrefslogtreecommitdiffstats
path: root/src/config/keymap.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/config/keymap.rs')
-rw-r--r--src/config/keymap.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/config/keymap.rs b/src/config/keymap.rs
index 9fb2e7d..4b4e64d 100644
--- a/src/config/keymap.rs
+++ b/src/config/keymap.rs
@@ -32,8 +32,8 @@ impl Flattenable<JoshutoKeymap> for JoshutoRawKeymap {
if let Some(maps) = self.mapcommand {
for mapcommand in maps {
match commands::from_args(mapcommand.command.as_str(), mapcommand.args.as_ref()) {
- Some(command) => insert_keycommand(&mut keymaps, command, &mapcommand.keys[..]),
- None => eprintln!("Unknown command: {}", mapcommand.command),
+ Ok(command) => insert_keycommand(&mut keymaps, command, &mapcommand.keys[..]),
+ Err(e) => eprintln!("{}", e),
}
}
}