diff --git a/include/chaiscript/language/chaiscript_eval.hpp b/include/chaiscript/language/chaiscript_eval.hpp index f2e2391..f40a9fc 100644 --- a/include/chaiscript/language/chaiscript_eval.hpp +++ b/include/chaiscript/language/chaiscript_eval.hpp @@ -584,9 +584,6 @@ namespace chaiscript params.clear(); retval = t_ss.call_function("[]", retval, p1); } - catch(std::out_of_range &) { - throw exception::eval_error("Out of bounds exception"); - } catch(const exception::dispatch_error &e){ throw exception::eval_error("Can not find appropriate array lookup operator '[]'.", e.parameters, e.functions, false, t_ss ); } @@ -662,9 +659,6 @@ namespace chaiscript try { retval = t_ss.call_function("[]", retval, this->children[i]->children[j]->eval(t_ss)); } - catch(std::out_of_range &) { - throw exception::eval_error("Out of bounds exception"); - } catch(const exception::dispatch_error &e){ throw exception::eval_error("Can not find appropriate array lookup operator '[]'.", e.parameters, e.functions, true, t_ss); }