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

Side by Side Diff: dm/appengine/deps/util.go

Issue 2951393002: [errors] de-specialize Transient in favor of Tags. (Closed)
Patch Set: copyright Created 3 years, 6 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2017 The LUCI Authors. All rights reserved.
2 // Use of this source code is governed under the Apache License, Version 2.0
3 // that can be found in the LICENSE file.
4
5 package deps
6
7 import (
8 "github.com/luci/luci-go/common/errors"
9 "github.com/luci/luci-go/grpc/grpcutil"
10 "google.golang.org/grpc/codes"
11 )
12
13 func grpcAnnotate(err error, code codes.Code) *errors.Annotator {
14 return errors.Annotate(err).Tag(grpcutil.Tag.With(code))
15 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698