Skip to content

Commit

Permalink
etl: fix already exists err code
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Koo <[email protected]>
  • Loading branch information
rkoo19 committed Dec 30, 2024
1 parent 35552d3 commit 7957035
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ais/prxetl.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ func (p *proxy) httpetlput(w http.ResponseWriter, r *http.Request) {
// must be new
etlMD := p.owner.etl.get()
if etlMD.get(initMsg.Name()) != nil {
p.writeErrf(w, r, "%s: etl[%s] already exists", p, initMsg.Name())
p.writeErrStatusf(w, r, http.StatusConflict, "%s: etl job %s already exists", p, initMsg.Name())
return
}

Expand Down

0 comments on commit 7957035

Please sign in to comment.