diff --git a/HISTORY b/HISTORY index aabadc6..8cd1bc5 100755 --- a/HISTORY +++ b/HISTORY @@ -1,3 +1,6 @@ +Mar. 11 2016 +Improved error promption + Mar. 9 2016 Improved overridden function invoking Fixed a memory leak diff --git a/core/my_basic.c b/core/my_basic.c index aaf4234..74148e4 100755 --- a/core/my_basic.c +++ b/core/my_basic.c @@ -3595,8 +3595,7 @@ _var: #endif /* MB_ENABLE_USERTYPE_REF */ c->type == _DT_ARRAY) ) { - _set_current_error(s, SE_RN_INVALID_DATA_TYPE, 0); - result = MB_FUNC_ERR; + _handle_error_on_obj(s, SE_RN_INVALID_DATA_TYPE, s->source_file, DON(ast), MB_FUNC_ERR, _error, result); goto _error; }