Output error codes.

This commit is contained in:
Danila Fedorin 2018-06-20 13:55:28 -07:00
parent 6822c97750
commit 82747eae6a

View File

@ -138,7 +138,7 @@ int main() {
eval_result = libab_run(&ab, input_buffer, &eval_into);
if (eval_result != LIBAB_SUCCESS) {
printf("Invalid input.\n");
printf("Invalid input (error code %d).\n", eval_result);
} else {
result = libab_run_function(&ab, "print", &call_into, 1, &eval_into);
libab_ref_free(&call_into);