diff options
author | Teddy Wing | 2018-11-04 03:17:29 +0100 |
---|---|---|
committer | Teddy Wing | 2018-11-04 03:17:29 +0100 |
commit | 43d12ec042078666de314a82a9c3361f68261cce (patch) | |
tree | c8dffdf0a571b0ed34764e7bb6bb4ed566bc055f | |
parent | 5ab4bcac5b4a62cca615185580094b6388f41fc4 (diff) | |
download | DomeKey-43d12ec042078666de314a82a9c3361f68261cce.tar.bz2 |
Mappings: Print parse error messages when running with `-r`
Otherwise, the error messages only get printed in the daemon process'
output. Much more convenient to print the error messages directly after
running the command with `--reload-mappings`.
-rw-r--r-- | DomeKey/Mappings.m | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/DomeKey/Mappings.m b/DomeKey/Mappings.m index f130ba6..382dbba 100644 --- a/DomeKey/Mappings.m +++ b/DomeKey/Mappings.m @@ -77,6 +77,13 @@ void reload_mappings( // Notification failed NSLog(@"Reload notification failed"); } + else { + // Run `dome_key_state_load_map_group()` to print any error messages + // from parsing. + State *tmp = dome_key_state_new(); + dome_key_state_load_map_group(tmp); + dome_key_state_free(tmp); + } return status; } |