(ctx context.Context, kind, opt string)
| 42 | } |
| 43 | |
| 44 | func newForbiddenOptionError(ctx context.Context, kind, opt string) error { |
| 45 | return ForbiddenOptionError{errctx.NewTextError( |
| 46 | fmt.Sprintf("Forbidden %s option %s", kind, opt), |
| 47 | 1, |
| 48 | errctx.WithStatusCode(http.StatusNotFound), |
| 49 | errctx.WithPublicMessage("Invalid URL"), |
| 50 | errctx.WithShouldReport(false), |
| 51 | errctx.WithDocsURL(errctx.DocsBaseURL(ctx, defaultDocsUrl)), |
| 52 | )} |
| 53 | } |
| 54 | |
| 55 | func newOptionArgumentError(ctx context.Context, key, format string, args ...any) error { |
| 56 | url := errctx.DocsBaseURL(ctx, defaultDocsUrl) |
no test coverage detected