}
if err != nil {
- return errors.New(fmt.Sprint(formatOutput(b.WorkDir, p.Dir, p.Desc(), output)))
+ prefix, suffix := formatOutput(b.WorkDir, p.Dir, p.Desc(), output)
+ return errors.New(prefix + suffix)
} else {
b.showOutput(a, p.Dir, p.Desc(), output)
}
desc = b.fmtcmd(dir, "%s", strings.Join(str.StringList(cmdargs...), " "))
}
if err != nil {
- err = errors.New(fmt.Sprint(formatOutput(b.WorkDir, dir, desc, b.processOutput(out))))
+ prefix, suffix := formatOutput(b.WorkDir, dir, desc, b.processOutput(out))
+ err = errors.New(prefix + suffix)
} else {
b.showOutput(a, dir, desc, b.processOutput(out))
}
}
if err != nil || os.Getenv("GO_BUILDER_NAME") != "" {
- err = errors.New(fmt.Sprintf(formatOutput(b.WorkDir, p.Dir, desc, b.processOutput(output))))
+ prefix, suffix := formatOutput(b.WorkDir, p.Dir, desc, b.processOutput(output))
+ err = errors.New(prefix + suffix)
} else {
b.showOutput(a, p.Dir, desc, b.processOutput(output))
}
return "", "", errors.New("must have SWIG version >= 3.0.6")
}
// swig error
- return "", "", errors.New(fmt.Sprint(formatOutput(b.WorkDir, p.Dir, p.Desc(), b.processOutput(out))))
+ prefix, suffix := formatOutput(b.WorkDir, p.Dir, p.Desc(), b.processOutput(out))
+ return "", "", errors.New(prefix + suffix)
}
return "", "", err
}
return nil
}
if err := packInternal(absAfile, absOfiles); err != nil {
- return errors.New(fmt.Sprint(formatOutput(b.WorkDir, p.Dir, p.Desc(), err.Error()+"\n")))
+ prefix, suffix := formatOutput(b.WorkDir, p.Dir, p.Desc(), err.Error()+"\n")
+ return errors.New(prefix + suffix)
}
return nil
}