diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2012-03-07 01:02:46 -0800 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2012-03-07 01:02:46 -0800 |
commit | 6788c2710f827648a0c2a55d3002c8e3b6ba5564 (patch) | |
tree | 8dd1c6fe4cf51c440c65d47ec69e88496dbd8e03 /builtin_test.cpp | |
parent | ed7c10f36666d6571c2399d507766e9fa3aad6c9 (diff) |
Improved error reporting for builtin_test
Diffstat (limited to 'builtin_test.cpp')
-rw-r--r-- | builtin_test.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/builtin_test.cpp b/builtin_test.cpp index 79018fc9..22073204 100644 --- a/builtin_test.cpp +++ b/builtin_test.cpp @@ -595,11 +595,14 @@ int builtin_test( parser_t &parser, wchar_t **argv ) wcstring err; expression *expr = test_parser::parse_args(args, err); if (! expr) { +#if 0 printf("Oops! test was given args:\n"); for (size_t i=0; i < argc; i++) { printf("\t%ls\n", args.at(i).c_str()); } printf("and returned parse error: %ls\n", err.c_str()); +#endif + builtin_show_error(err); return BUILTIN_TEST_FAIL; } else { wcstring_list_t eval_errors; |