Skip to content

Commit

Permalink
sync up error messages between stable and master
Browse files Browse the repository at this point in the history
  • Loading branch information
pramsey committed Feb 2, 2025
1 parent 174b843 commit 9ee0b64
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion expected/http.out
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ CREATE TEMPORARY TABLE timer AS
SELECT now() AS start;
SELECT *
FROM http_get(current_setting('http.server_host') || '/delay/7');
ERROR: HTTP request cancelled
ERROR: canceling statement due to user request
SELECT round(extract(epoch FROM now() - start) * 10) AS m
FROM timer;
m
Expand Down
4 changes: 1 addition & 3 deletions http.c
Original file line number Diff line number Diff line change
Expand Up @@ -1383,9 +1383,7 @@ Datum http_request(PG_FUNCTION_ARGS)
* report back.
*/
if (http_return == CURLE_ABORTED_BY_CALLBACK)
{
elog(ERROR, "HTTP request cancelled");
}
elog(ERROR, "canceling statement due to user request");
#endif

http_error(http_return, http_error_buffer);
Expand Down

0 comments on commit 9ee0b64

Please sign in to comment.