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

Unified Diff: server/prpc/error.go

Issue 1605363002: common/prpc, tools/cmd/cproto: prpc client (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/luci-go@master
Patch Set: use text template for ast generation Created 4 years, 11 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
Index: server/prpc/error.go
diff --git a/server/prpc/error.go b/server/prpc/error.go
index 950ef99f65c3787f36c451cf1653057d8e3c54a7..f19e9be9ea56eb4feeacb69ecedaefb32c20069b 100644
--- a/server/prpc/error.go
+++ b/server/prpc/error.go
@@ -19,6 +19,10 @@ func (e *httpError) Error() string {
return fmt.Sprintf("HTTP %d: %s", e.status, e.err)
}
+func (e *httpError) InnerError() error {
+ return e.err
+}
+
// withStatus wraps an error with an HTTP status.
// If err is nil, returns nil.
func withStatus(err error, status int) *httpError {

Powered by Google App Engine
This is Rietveld 408576698