File tree Expand file tree Collapse file tree 1 file changed +0
-3
lines changed
Expand file tree Collapse file tree 1 file changed +0
-3
lines changed Original file line number Diff line number Diff line change @@ -63,8 +63,6 @@ declare
6363 res text [];
6464 k int4;
6565 rec record;
66- err_state text ;
67- err_detail text ;
6866begin
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").' ;
You can’t perform that action at this time.
0 commit comments