From 3f254db414737ed55913216927923983ef4585db Mon Sep 17 00:00:00 2001
From: Thomas Thomassen <thomthom@sketchup.com>
Date: Fri, 4 Oct 2024 11:40:24 +0200
Subject: [PATCH] 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.
---
 src/testup/test_discoverer.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/testup/test_discoverer.rb b/src/testup/test_discoverer.rb
index 28d6d9c..6c6523f 100644
--- a/src/testup/test_discoverer.rb
+++ b/src/testup/test_discoverer.rb
@@ -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
       }