-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
indexer: Return 4XX status code when Index() returns tarfs.ErrBadFormat
Currently when there is any error indexing a manifest we return InternalServerError. As Clair can be sent layer files that are not valid, we should return a client error. This will also help unmask real unexpected application failures. Signed-off-by: crozzy <joseph.crosland@gmail.com>
- Loading branch information
Showing
2 changed files
with
51 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters