fix: add missing output formats in error message (#213)

- Add missing 'junit' and 'pretty' output formats.
- Use quotes vs. backticks around command name
This commit is contained in:
Will Yardley 2023-06-14 13:41:51 -07:00 committed by GitHub
parent c8bce62898
commit 71fd5f8386
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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'")
}
}