Remove redundant information in an error message
This commit is contained in:
parent
35555b769a
commit
897c861451
|
@ -100,7 +100,7 @@ func execScript(ctx context.Context, scriptName string, notif notification) erro
|
||||||
} else if isExitError {
|
} else if isExitError {
|
||||||
return fmt.Errorf("script %q terminated by signal with error %q", scriptName, strings.TrimSpace(stderr.String()))
|
return fmt.Errorf("script %q terminated by signal with error %q", scriptName, strings.TrimSpace(stderr.String()))
|
||||||
} else {
|
} else {
|
||||||
return fmt.Errorf("error executing script %q: %w", scriptName, err)
|
return fmt.Errorf("error executing script: %w", err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue