Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1257)

Unified Diff: appengine/ephelper/errors.go

Issue 1750143003: Remove ephelper and other endpoints code. (Closed) Base URL: https://github.com/luci/luci-go@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « appengine/ephelper/ephelper.go ('k') | appengine/ephelper/middleware.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: appengine/ephelper/errors.go
diff --git a/appengine/ephelper/errors.go b/appengine/ephelper/errors.go
deleted file mode 100644
index 82a192a95cc840ac58f15f184ad75da5887a1e71..0000000000000000000000000000000000000000
--- a/appengine/ephelper/errors.go
+++ /dev/null
@@ -1,25 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-package ephelper
-
-import (
- "github.com/GoogleCloudPlatform/go-endpoints/endpoints"
-)
-
-// StripError converts the supplied error into an endpoints.APIError.
-//
-// If the error is not already an endpoints.APIError, InternalServerError
-// will be returned.
-func StripError(err error) *endpoints.APIError {
- if err == nil {
- return nil
- }
-
- epErr, ok := err.(*endpoints.APIError)
- if !ok {
- epErr = endpoints.InternalServerError.(*endpoints.APIError)
- }
- return epErr
-}
« no previous file with comments | « appengine/ephelper/ephelper.go ('k') | appengine/ephelper/middleware.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698