Skip to content

Commit 23595cd

Browse files
docs: decouple WithRawErrors doc from CLI flag name
1 parent 3bcbf4b commit 23595cd

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

pkg/sqlcmd/format.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,9 @@ type sqlCmdFormatterType struct {
9191
// FormatterOption configures a Formatter returned by NewSQLCmdDefaultFormatter.
9292
type FormatterOption func(*sqlCmdFormatterType)
9393

94-
// WithRawErrors implements -j: when raw is true, AddError keeps the "mssql: "
95-
// prefix that go-mssqldb adds to error text instead of stripping it.
94+
// WithRawErrors controls AddError prefix handling: when raw is true, AddError
95+
// keeps the "mssql: " prefix that go-mssqldb adds to error text instead of
96+
// stripping it.
9697
func WithRawErrors(raw bool) FormatterOption {
9798
return func(f *sqlCmdFormatterType) { f.rawErrors = raw }
9899
}

0 commit comments

Comments
 (0)