From 08540dddd0079972231e6c2d8b40d94e7c54d512 Mon Sep 17 00:00:00 2001
From: Daniel Stinson-Diess <dstinson-diess@brex.com>
Date: Tue, 29 Oct 2024 16:50:03 -0500
Subject: [PATCH] feat(cmd): log test transform errors to stderr

---
 cmd/substation/test.go | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/cmd/substation/test.go b/cmd/substation/test.go
index 7a47477c..4ad90c5b 100644
--- a/cmd/substation/test.go
+++ b/cmd/substation/test.go
@@ -276,9 +276,9 @@ func testFile(arg string, extVars map[string]string) error {
 
 		tMsgs, err := tester.Transform(ctx, sMsgs...)
 		if err != nil {
-			fmt.Printf("?\t%s\t[config error]\n", arg)
+			fmt.Printf("?\t%s\t[transform error]\n", arg)
+			fmt.Fprintf(os.Stderr, "error: %v\n", err)
 
-			//nolint:nilerr  // errors should not disrupt the test.
 			return nil
 		}