From 6b331cc3c499ef4eb15b192b5c157a335a1be303 Mon Sep 17 00:00:00 2001 From: Danila Fedorin Date: Fri, 22 Jun 2018 00:44:59 -0700 Subject: [PATCH] Report error code from function call. --- src/interpreter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/interpreter.c b/src/interpreter.c index a6fb3e7..b95ec03 100644 --- a/src/interpreter.c +++ b/src/interpreter.c @@ -1212,7 +1212,7 @@ libab_result libab_interpreter_run_function(libab_interpreter* intr, function, &function_value); if(result == LIBAB_SUCCESS) { libab_ref_free(into); - _interpreter_try_call(&state, &function_value, params, into); + result = _interpreter_try_call(&state, &function_value, params, into); } _interpreter_free(&state);