Skip to content

Commit

Permalink
Merge pull request #616 from Peergos/fix/catch-network-timeout
Browse files Browse the repository at this point in the history
convert POST timeout to ConnectException
  • Loading branch information
ianopolous committed Sep 17, 2024
2 parents 3940b22 + 2df3f6f commit a9d20e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vendor/priors/gwt.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ function postProm(url, data, timeout) {
};

req.ontimeout = function() {
reject(Error("Network timeout"));
future.completeExceptionally(new java.net.ConnectException("Unable to connect"));
};

req.send(data);
Expand Down

0 comments on commit a9d20e4

Please sign in to comment.