mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
fix typo
Signed-off-by: allencloud <allen.sun@daocloud.io>
This commit is contained in:
parent
c6d69ea9e9
commit
1f039a66ac
5 changed files with 5 additions and 5 deletions
|
@ -28,7 +28,7 @@ type inputValidationError interface {
|
|||
IsValidationError() bool
|
||||
}
|
||||
|
||||
// GetHTTPErrorStatusCode retrieve status code from error message
|
||||
// GetHTTPErrorStatusCode retrieves status code from error message
|
||||
func GetHTTPErrorStatusCode(err error) int {
|
||||
if err == nil {
|
||||
logrus.WithFields(logrus.Fields{"error": err}).Error("unexpected HTTP error handling")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue