Skip to content

Commit

Permalink
[Tests] Avoid crashes in server tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kLabz committed Jun 25, 2024
1 parent 02d27c1 commit e4818a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/server/src/TestCase.hx
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ class TestCase implements ITest implements ITestCase {
errorMessages = [];
server.rawRequest(args, null, function(result) {
handleResult(result);
var json = Json.parse(result.stderr);
var json = try Json.parse(result.stderr) catch(e) {result: null, error: e.message};
if (json.result != null) {
callback(json.result.result);
} else {
Expand Down

0 comments on commit e4818a9

Please sign in to comment.