Skip to content

Commit

Permalink
feat(cmd): log test transform errors to stderr
Browse files Browse the repository at this point in the history
  • Loading branch information
shellcromancer committed Oct 29, 2024
1 parent cf595c4 commit 08540dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/substation/test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 08540dd

Please sign in to comment.