Skip to content

Commit

Permalink
the order of this error message should be reversed (#1306)
Browse files Browse the repository at this point in the history
Co-authored-by: Darwin D Wu <darwin67@users.noreply.github.com>
  • Loading branch information
darwin67 and darwin67 committed Apr 29, 2024
1 parent 993f11d commit d1de08e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/devserver/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ func (a devapi) Register(w http.ResponseWriter, r *http.Request) {

expectedServerKind := r.Header.Get(headers.HeaderKeyExpectedServerKind)
if expectedServerKind != "" && expectedServerKind != headers.ServerKindDev {
a.err(ctx, w, 400, fmt.Errorf("Expected server kind %s, got %s", expectedServerKind, headers.ServerKindDev))
a.err(ctx, w, 400, fmt.Errorf("Expected server kind %s, got %s", headers.ServerKindDev, expectedServerKind))
return
}

Expand Down

0 comments on commit d1de08e

Please sign in to comment.