From feb225725f96c1717f391855b7955937215b013e Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Wed, 30 Dec 2020 18:41:38 +0200 Subject: [PATCH] Fix an incorrect condition for throwing an exception Null actions are allowed, so only throw if there was no match. --- source/loader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/loader.cpp b/source/loader.cpp index 51e22ed..6a4a8d8 100644 --- a/source/loader.cpp +++ b/source/loader.cpp @@ -229,7 +229,7 @@ LoaderAction *Loader::find_action(const StatementKey &key) const } } - if(!act) + if(!match) throw invalid_signature(key.keyword, key.signature); return act; -- 2.43.0