From 82747eae6aac942076f66a320dbf910a0e54ade4 Mon Sep 17 00:00:00 2001 From: Danila Fedorin Date: Wed, 20 Jun 2018 13:55:28 -0700 Subject: [PATCH] Output error codes. --- src/interactive.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/interactive.c b/src/interactive.c index 5639313..1f57453 100644 --- a/src/interactive.c +++ b/src/interactive.c @@ -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);