|
|
@ -375,12 +375,7 @@ func reformatExecErrorMsg(filename string, err error) error {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
current := err
|
|
|
|
current := err
|
|
|
|
fileLocations := []TraceableError{}
|
|
|
|
fileLocations := []TraceableError{}
|
|
|
|
maxIterations := 100
|
|
|
|
for current != nil {
|
|
|
|
for i := 0; i < maxIterations && current != nil; i++ {
|
|
|
|
|
|
|
|
if i == maxIterations-1 {
|
|
|
|
|
|
|
|
return err
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var traceable TraceableError
|
|
|
|
var traceable TraceableError
|
|
|
|
if matches := execErrFmt.FindStringSubmatch(current.Error()); matches != nil {
|
|
|
|
if matches := execErrFmt.FindStringSubmatch(current.Error()); matches != nil {
|
|
|
|
templateName := matches[execErrFmt.SubexpIndex("templateName")]
|
|
|
|
templateName := matches[execErrFmt.SubexpIndex("templateName")]
|
|
|
|