summaryrefslogtreecommitdiff
path: root/api/server/httputils/errors.go
diff options
context:
space:
mode:
authorkaiwentan <kaiwentan@harmonycloud.cn>2017-02-07 20:29:32 +0800
committerkaiwentan <kaiwentan@harmonycloud.cn>2017-02-07 20:29:32 +0800
commitac9c47e26f57a0fa2fed95a1fb1bf6c9410a3b60 (patch)
treece7cb6088fc77d62e83a771af96b81ef4b98faa7 /api/server/httputils/errors.go
parent09e99ef1fcbbcb8f1551298244ad8ac214cf2625 (diff)
downloaddocker-ac9c47e26f57a0fa2fed95a1fb1bf6c9410a3b60.tar.gz
fix some types on errors and form
Signed-off-by: kaiwentan <kaiwentan@harmonycloud.cn>
Diffstat (limited to 'api/server/httputils/errors.go')
-rw-r--r--api/server/httputils/errors.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/server/httputils/errors.go b/api/server/httputils/errors.go
index 59098a9df0..c8f24cad28 100644
--- a/api/server/httputils/errors.go
+++ b/api/server/httputils/errors.go
@@ -28,7 +28,7 @@ type inputValidationError interface {
IsValidationError() bool
}
-// GetHTTPErrorStatusCode retrieves 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")