We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 964aca4 commit 8e761d4Copy full SHA for 8e761d4
lib/RenderApp/Controller/Render.pm
@@ -160,9 +160,6 @@ async sub problem {
160
elsif ($response->is_error) {
161
$answerJWTresponse->{message} = '[' . $c->logID . '] ' . $response->message;
162
}
163
-
164
- $answerJWTresponse->{message} =~ s/"/\\"/g;
165
- $answerJWTresponse->{message} =~ s/'/\'/g;
166
})->
167
catch(sub {
168
my $response = shift;
@@ -171,6 +168,9 @@ async sub problem {
171
$answerJWTresponse->{status} = 500;
172
169
$answerJWTresponse->{message} = '[' . $c->logID . '] ' . $response;
173
170
});
+
+ $answerJWTresponse->{message} =~ s/"/\\"/g;
+ $answerJWTresponse->{message} =~ s/'/\'/g;
174
$answerJWTresponse = encode_json($answerJWTresponse);
175
$c->log->info("answerJWT response ".$answerJWTresponse);
176
0 commit comments