(ctx context.Context, kind, opt string)
| 31 | } |
| 32 | |
| 33 | func newUnknownOptionError(ctx context.Context, kind, opt string) error { |
| 34 | return UnknownOptionError{errctx.NewTextError( |
| 35 | fmt.Sprintf("Unknown %s option %s", kind, opt), |
| 36 | 1, |
| 37 | errctx.WithStatusCode(http.StatusNotFound), |
| 38 | errctx.WithPublicMessage("Invalid URL"), |
| 39 | errctx.WithDocsURL(errctx.DocsBaseURL(ctx, defaultDocsUrl)), |
| 40 | errctx.WithShouldReport(false), |
| 41 | )} |
| 42 | } |
| 43 | |
| 44 | func newForbiddenOptionError(ctx context.Context, kind, opt string) error { |
| 45 | return ForbiddenOptionError{errctx.NewTextError( |
no test coverage detected