import("errors""fmt""github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/facebookgo/stackerr""github.com/jbenet/go-ipfs/util")funcErrorf(formatstring,a...interface{})error{returnWrap(fmt.Errorf(format,a...))}// New returns an error that contains a stack trace (in debug mode)funcNew(sstring)error{ifutil.Debug{returnstackerr.New(s)}returnerrors.New(s)}funcWrap(errerror)error{ifutil.Debug{returnstackerr.Wrap(err)}returnerr}