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

Unified Diff: dm/appengine/distributor/notify_execution.go

Issue 2963503003: [errors] Greatly simplify common/errors package. (Closed)
Patch Set: fix nits 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « dm/appengine/deps/util.go ('k') | dm/appengine/distributor/swarming/v1/distributor.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dm/appengine/distributor/notify_execution.go
diff --git a/dm/appengine/distributor/notify_execution.go b/dm/appengine/distributor/notify_execution.go
index bc46f2d2d49d38f0891dc18f1cf60e8cfcad1dd3..1538195c3b4a99763ad895624c9265bcb81b29b1 100644
--- a/dm/appengine/distributor/notify_execution.go
+++ b/dm/appengine/distributor/notify_execution.go
@@ -40,7 +40,7 @@ func (f *NotifyExecution) RollForward(c context.Context) (muts []tumble.Mutation
q := &model.Quest{ID: f.Notification.ID.Quest}
if err := ds.Get(ds.WithoutTransaction(c), q); err != nil {
- return nil, errors.Annotate(err).Reason("getting Quest").Err()
+ return nil, errors.Annotate(err, "getting Quest").Err()
}
rslt, err := dist.HandleNotification(&q.Desc, f.Notification)
if err != nil {
« no previous file with comments | « dm/appengine/deps/util.go ('k') | dm/appengine/distributor/swarming/v1/distributor.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698