| // Copyright 2015 The Vanadium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style |
| // license that can be found in the LICENSE file. |
| var noWrapPackages = []string{ |
| func MaybeWrapError(idAction verror.IDAction, ctx *context.T, err error) error { |
| return verror.New(idAction, ctx, err) |
| func shouldWrap(err error) bool { |
| id := verror.ErrorID(err) |
| for _, pkg := range noWrapPackages { |
| if strings.HasPrefix(string(id), pkg) { |
| func isVError(err error) bool { |
| if _, ok := err.(verror.E); ok { |
| if e, ok := err.(*verror.E); ok && e != nil { |