Chromium Code Reviews

Unified Diff: common/errors/markederror.go

Issue 1249933002: Move multierror logic into luci-go. (Closed) Base URL: https://github.com/luci/luci-go@add_mathrand
Patch Set: rename Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: common/errors/markederror.go
diff --git a/common/errors/errors.go b/common/errors/markederror.go
similarity index 92%
rename from common/errors/errors.go
rename to common/errors/markederror.go
index 3deb920326171543e6b5bda57141516d01e60c5b..ae4e885824dc1a0337a5991f559a2974e676aa2d 100644
--- a/common/errors/errors.go
+++ b/common/errors/markederror.go
@@ -5,11 +5,15 @@
package errors
import (
+ "errors"
"fmt"
"path/filepath"
"runtime"
)
+// New is a pass-through version of the standard errors.New function.
+var New = errors.New
+
// MarkedError is the specific error type retuned by MakeMarkFn. It's designed
// so that you can access the underlying object if needed.
type MarkedError struct {

Powered by Google App Engine