mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 12:19:54 +00:00
test-js: Print parse error if test-common.js fails to parse
This commit is contained in:
parent
ebd510ef5e
commit
3fbb02c3cc
Notes:
sideshowbarker
2024-07-19 03:19:05 +09:00
Author: https://github.com/nico
Commit: 3fbb02c3cc
Pull-request: https://github.com/SerenityOS/serenity/pull/3256
Reviewed-by: https://github.com/linusg ✅
1 changed files with 3 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue