Skip to content

Commit 2348ee7

Browse files
authored
Update GDLInterpreter.cpp
solve #2017
1 parent 1d63ac8 commit 2348ee7

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/GDLInterpreter.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -417,10 +417,11 @@ GDLInterpreter::GDLInterpreter()
417417

418418
// errors while typing commands in inner loop (called via Control-C, STOP, error) should be ignored.
419419
if (e.Interpreter()->IsInnerInterpreterLoop()) {
420-
e.Interpreter()->SetInnerInterpeterLoop(false);
421-
_retTree=NULL;
422-
debugMode=DEBUG_CLEAR;
423-
throw e; //signal we made a (typing ?) error see #1855
420+
e.Interpreter()->SetInnerInterpeterLoop(false);
421+
_retTree=NULL;
422+
debugMode=DEBUG_CLEAR;
423+
// we cannot throw, here, it caused #2017
424+
Warning(e.getMessage()); //just warn that there was a (typing ?) error see #1855
424425
return RC_OK;
425426
}
426427
// reset _retTree to last statement

0 commit comments

Comments
 (0)