aboutsummaryrefslogtreecommitdiffstats
path: root/ponymix.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ponymix.cc')
-rw-r--r--ponymix.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/ponymix.cc b/ponymix.cc
index 5da741e..de3eebb 100644
--- a/ponymix.cc
+++ b/ponymix.cc
@@ -456,6 +456,9 @@ static const std::pair<const string, const Command>& string_to_command(
};
const auto match = actionmap.lower_bound(str);
+ if (match == actionmap.end()) {
+ errx(1, "error: Invalid action specified: %s", str);
+ }
// Check for exact match
if (match->first == str) {