Open slayoo opened 6 years ago
Another example here is taken from #468. Suppose following GDL code:
PRO invalid_code
this_is_invalid
end
In Python, an error message is printed, but no error is thrown:
>>> import GDL
>>> GDL.pro('invalid_code')
% Compiled module: INVALID_CODE.
% INVALID_CODE: Parser syntax error: unexpected token:
(moved from https://sourceforge.net/p/gnudatalanguage/bugs/680/) As reported on SF by @olebole:
When a GDL routine has an error (for example, a undefined procedure), no exception is thrown, but instead one gets a GDL console:
This makes it impossible to handle the problem within Python. Instead, an error should be given back. Ideally, also a Python stacktrace could be created containing the GDL trace as well.