Remove redundant information in an error message

This commit is contained in:
Andrew Ayer 2023-02-03 14:38:02 -05:00
parent 35555b769a
commit 897c861451
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ func execScript(ctx context.Context, scriptName string, notif notification) erro
} else if isExitError {
return fmt.Errorf("script %q terminated by signal with error %q", scriptName, strings.TrimSpace(stderr.String()))
} else {
return fmt.Errorf("error executing script %q: %w", scriptName, err)
return fmt.Errorf("error executing script: %w", err)
}
}