We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2d26dde commit c01f9d2Copy full SHA for c01f9d2
maintenance/errors/context.go
@@ -13,7 +13,7 @@ import (
13
// the optional exposedErr is provided, it is attached as prefix
14
// to the returned error. If the given err is not any of the above
15
// ones, the given exposedErr (if present) is wrapped as prefix
16
-// to the returned error.
+// to the returned error, if there is an err that is not nil.
17
func Hide(ctx context.Context, err, exposedErr error) error {
18
if err == nil {
19
return nil
0 commit comments