diff --git a/src/logid/features/RemapButton.cpp b/src/logid/features/RemapButton.cpp index 58aa786..b28d091 100644 --- a/src/logid/features/RemapButton.cpp +++ b/src/logid/features/RemapButton.cpp @@ -171,6 +171,9 @@ void RemapButton::Config::_parseButton(libconfig::Setting &setting) } catch(libconfig::SettingNotFoundException& e) { logPrintf(WARN, "Line %d: action is required, ignoring.", setting.getSourceLine()); + } catch(InvalidAction& e) { + logPrintf(WARN, "Line %d: %s is not a valid action, ignoring.", + setting["action"].getSourceLine(), e.what()); } }