diff --git a/src/filters.cpp b/src/filters.cpp index 3bb1d79e..8556339b 100644 --- a/src/filters.cpp +++ b/src/filters.cpp @@ -1061,7 +1061,7 @@ InternalValue UserDefinedFilter::Filter(const InternalValue& baseVal, RenderCont bool filterFound = false; auto filterValPtr = context.FindValue(m_filterName, filterFound); if (!filterFound) - return InternalValue(); + throw std::runtime_error("Can't find filter '" + m_filterName + "'"); const Callable* callable = GetIf(&filterValPtr->second); if (callable == nullptr || callable->GetKind() != Callable::UserCallable)