Skip to content

Commit

Permalink
Correct how the error is printed when test cases fail to load.
Browse files Browse the repository at this point in the history
Using .inspect made multi-line errors that pointed to where the syntax errors are hard to read.
  • Loading branch information
thomthom committed Oct 4, 2024
1 parent dda16e9 commit df1f637
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/testup/test_discoverer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def discover_testcases(testsuite_path)
# TODO: Indicate in the UI that a test suite had loading errors.
testcase_name = File.basename(testcase_file, '.*')
warn "Failed to load test case: #{testcase_name} (#{testcase_file})"
warn error.original_error.inspect
warn error.original_error.to_s
warn error.original_error.backtrace.join("\n")
end
}
Expand Down

0 comments on commit df1f637

Please sign in to comment.