Skip to content

Commit 48dfea1

Browse files
committed
FIX use warning instead of Runtime Error when adding an object or array in basic expressions mode
1 parent eec5bb0 commit 48dfea1

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGES_NEXT_RELEASE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@
77
- Fix: admin log operations error responses were not following NGSIv2 error response syntax
88
- Fix: memory leaks in parse logic in case of parse error (possibly)
99
- Fix: csubs and registrations now use isPattern as bool instead of string (legacy from NGSIv1 model), although strings are still supported (#4681)
10+
- Fix: use warning instead of Runtime Error when adding an object or array in basic expressions mode
1011
- Hardening: remove a huge amount of NGSIv1 related dead-code (#4681)

src/lib/expressions/ExprContext.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ void ExprContextObject::add(const std::string &key, ExprContextObject exprContex
164164
{
165165
if (basic)
166166
{
167-
LM_E(("Runtime Error (this method must not be invoked in basic mode)"));
167+
LM_W(("invoking add for object in basic mode has no effect"));
168168
}
169169
else
170170
{
@@ -184,7 +184,7 @@ void ExprContextObject::add(const std::string &key, ExprContextList exprContextL
184184
{
185185
if (basic)
186186
{
187-
LM_E(("Runtime Error (this method must not be invoked in basic mode)"));
187+
LM_W(("invoking add for array in basic mode has no effect"));
188188
}
189189
else
190190
{

0 commit comments

Comments
 (0)