Skip to content

Commit b5ce5a2

Browse files
committed
Errorf -> Error
1 parent 6066339 commit b5ce5a2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

cli/stream_run_logs/stream_run_logs.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ func parseFlags(parsedArgs *parsed.OrderedArgs) (enabled bool, onFailure Failure
132132

133133
func handleErr(msg string, onFailure FailureMode) error {
134134
if onFailure == FailureModeFail {
135-
return status.InternalErrorf("%s", msg)
135+
return status.InternalError(msg)
136136
}
137137
log.Warnf(msg)
138138
return nil
@@ -186,7 +186,7 @@ func Execute(runScriptPath string, opts Opts) (int, error) {
186186

187187
func handleStreamingFailure(scriptPath string, sigChan <-chan os.Signal, mode FailureMode, errorMsg string) (int, error) {
188188
if mode == FailureModeFail {
189-
return 1, status.InternalErrorf("%s", errorMsg)
189+
return 1, status.InternalError(errorMsg)
190190
}
191191
log.Warnf(errorMsg)
192192
log.Warnf("Falling back to running script without run log streaming")

enterprise/server/githubapp/githubapp.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -667,7 +667,7 @@ func (a *GitHubApp) createInstallation(ctx context.Context, in *tables.GitHubApp
667667
if len(appIDs) > 1 {
668668
msg := fmt.Sprintf("unexpected multiple github app IDs installed for group %s", in.GroupID)
669669
alert.UnexpectedEvent(msg)
670-
return status.InternalErrorf("%s", msg)
670+
return status.InternalError(msg)
671671
}
672672
for alreadyInstalledAppID := range appIDs {
673673
if alreadyInstalledAppID != in.AppID {

0 commit comments

Comments
 (0)