diff options
-rw-r--r-- | signal-composer-binding/signal-composer.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/signal-composer-binding/signal-composer.cpp b/signal-composer-binding/signal-composer.cpp index 9abe54e..e8e7668 100644 --- a/signal-composer-binding/signal-composer.cpp +++ b/signal-composer-binding/signal-composer.cpp @@ -259,6 +259,11 @@ int Composer::loadOneSignal(afb_api_t apihandle, json_object* signalJ) } std::string api = eventStr.substr(0, sep); src = getSourceAPI(api); + if(!src) + { + AFB_ERROR("Can't find the source API %s for the event %s. Check you configuration.", api.c_str(), eventStr.c_str()); + return -1; + } } else { |