Skip to content

Commit 25b23db

Browse files
committed
cleanup
1 parent 13d238d commit 25b23db

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

install_core.sql

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,6 @@ declare
6363
res text[];
6464
k int4;
6565
rec record;
66-
err_state text;
67-
err_detail text;
6866
begin
6967
res := qs; -- by default, return input "as is"
7068
qs2call := array[]::text[];
@@ -121,7 +119,6 @@ begin
121119
response := response_text::json;
122120
exception
123121
when invalid_text_representation then -- Google returned text, not JSON
124-
get stacked diagnostics err_state = returned_sqlstate, err_detail = pg_exception_detail;
125122
raise exception 'Google Translate API returned text, not JSON (see details)'
126123
using detail = response_text,
127124
hint = 'Google Translate API usually returns text instead of JSON if something is wrong with the request (error 400 "Bad Request").';

0 commit comments

Comments
 (0)