Skip to content

Commit df1f637

Browse files
committed
Correct how the error is printed when test cases fail to load.
Using .inspect made multi-line errors that pointed to where the syntax errors are hard to read.
1 parent dda16e9 commit df1f637

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/testup/test_discoverer.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def discover_testcases(testsuite_path)
101101
# TODO: Indicate in the UI that a test suite had loading errors.
102102
testcase_name = File.basename(testcase_file, '.*')
103103
warn "Failed to load test case: #{testcase_name} (#{testcase_file})"
104-
warn error.original_error.inspect
104+
warn error.original_error.to_s
105105
warn error.original_error.backtrace.join("\n")
106106
end
107107
}

0 commit comments

Comments
 (0)