From 3fbb02c3cc134af04edb58115dfc928f02000b3d Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Fri, 21 Aug 2020 21:45:21 -0400 Subject: [PATCH] test-js: Print parse error if test-common.js fails to parse --- Userland/test-js.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Userland/test-js.cpp b/Userland/test-js.cpp index f1f9602595..2a1dadd6b3 100644 --- a/Userland/test-js.cpp +++ b/Userland/test-js.cpp @@ -245,7 +245,9 @@ JSFileResult TestRunner::run_file_test(const String& test_path) if (!m_test_program) { auto result = parse_file(String::format("%s/test-common.js", m_test_root.characters())); if (result.is_error()) { - printf("Unable to parse test-common.js"); + printf("Unable to parse test-common.js\n"); + printf("%s\n", result.error().error.to_string().characters()); + printf("%s\n", result.error().hint.characters()); exit(1); } m_test_program = result.value();