Skip to content

Commit

Permalink
handle HttpNodeJs request error
Browse files Browse the repository at this point in the history
  • Loading branch information
josuigoa committed Sep 19, 2024
1 parent b99eda0 commit 7596254
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions std/haxe/http/HttpNodeJs.hx
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,10 @@ class HttpNodeJs extends haxe.http.HttpBase {
req.write(Buffer.from(postBytes.getData()));
}

req.on('error', function(e) {
onError("Http Request Error: " + e);
});

req.end();
}
}
Expand Down

0 comments on commit 7596254

Please sign in to comment.