Skip to content

Commit 6300cae

Browse files
rMaxiQpAgnesToulet
andauthored
refactor: apply review suggestions
Co-authored-by: Agnès Toulet <[email protected]>
1 parent 1a0283d commit 6300cae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/cmd/run.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,10 @@ func (c *cmdRun) serveHTTP(srv *http.Server, addrSetByUser bool) {
6969
if err := srv.ListenAndServe(); err != nil && !errors.Is(err, http.ErrServerClosed) {
7070
// Only exit k6 if the user has explicitly set the REST API address
7171
if addrSetByUser {
72-
logger.WithError(err).Error("Error from API server")
72+
logger.WithError(err).Error("Error starting REST API server")
7373
c.gs.OSExit(int(exitcodes.CannotStartRESTAPI))
7474
} else {
75-
logger.WithError(err).Warn("Error from HTTP API server")
75+
logger.WithError(err).Warn("Error starting REST API server")
7676
}
7777
}
7878
}

0 commit comments

Comments
 (0)