From 20677b49d3e8d70746af74c8da64f69554ffd941 Mon Sep 17 00:00:00 2001 From: paladin-t Date: Fri, 11 Mar 2016 10:51:41 +0800 Subject: [PATCH] *improved error promption. --- HISTORY | 3 +++ core/my_basic.c | 3 +-- 2 files changed, 4 insertions(+), 2 deletions(-) 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; }