Skip to content

Commit

Permalink
correctly report error in publish plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
davidjgoss committed Dec 10, 2024
1 parent 42483a3 commit b320e53
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/publish/http_stream.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,11 @@ export default class HttpStream extends Transform {
{},
(err2, res2) => {
if (doesHaveValue(err2)) return callback(err2)
this.emitErrorUnlessHttp2xx(res2, this.url, this.method)
this.emitErrorUnlessHttp2xx(
res2,
res1.headers.location,
'PUT'
)
callback()
}
)
Expand Down

0 comments on commit b320e53

Please sign in to comment.