From 851a1b8317567833854cb5f3c27bc8395c5f9edf Mon Sep 17 00:00:00 2001 From: William Yardley Date: Wed, 14 Jun 2023 10:59:16 -0700 Subject: [PATCH] fix: add missing output formats in error message - Add missing 'junit' and 'pretty' output formats. - Use quotes vs. backticks around command name --- pkg/output/output.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/output/output.go b/pkg/output/output.go index 9f85f1d..67c0262 100644 --- a/pkg/output/output.go +++ b/pkg/output/output.go @@ -25,6 +25,6 @@ func New(w io.Writer, outputFormat string, printSummary, isStdin, verbose bool) case outputFormat == "text": return textOutput(w, printSummary, isStdin, verbose), nil default: - return nil, fmt.Errorf("`outputFormat` must be 'json', 'tap' or 'text'") + return nil, fmt.Errorf("'outputFormat' must be 'json', 'junit', 'pretty', 'tap' or 'text'") } }