NewInvalidPathError creates "invalid path" error
(ctx context.Context, path string)
| 51 | |
| 52 | // NewInvalidPathError creates "invalid path" error |
| 53 | func NewInvalidPathError(ctx context.Context, path string) errctx.Error { |
| 54 | return newInvalidURLErrorf( |
| 55 | errctx.DocsBaseURL(ctx, defaultDocsUrl), |
| 56 | http.StatusNotFound, |
| 57 | "Invalid path: %s", path, |
| 58 | ) |
| 59 | } |
| 60 | |
| 61 | // NewCantSaveError creates "resulting image not supported" error |
| 62 | func NewCantSaveError(format imagetype.Type) errctx.Error { |
no test coverage detected