File tree Expand file tree Collapse file tree
proxies/shared/resources/jsc Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -32,13 +32,8 @@ headerNames.forEach(function (header) {
3232} ) ;
3333
3434// format errors and response objects
35- try {
36- const errorContent = context . getVariable ( "error.content" )
37- const responseContent = context . getVariable ( "response.content" )
35+ const errorContent = context . getVariable ( "error.content" )
36+ const responseContent = context . getVariable ( "response.content" )
3837
39- if ( errorContent ) context . setVariable ( "error.content" , JSON . stringify ( JSON . parse ( errorContent ) ) )
40- if ( responseContent ) context . setVariable ( "response.content" , JSON . stringify ( JSON . parse ( responseContent ) ) )
41-
42- } catch ( e ) {
43- //
44- }
38+ if ( errorContent ) context . setVariable ( "error.content" , JSON . stringify ( JSON . parse ( errorContent ) ) )
39+ if ( responseContent ) context . setVariable ( "response.content" , JSON . stringify ( JSON . parse ( responseContent ) ) )
You can’t perform that action at this time.
0 commit comments