Fix null result error handling (#150)

This commit is contained in:
Pavel 2022-04-22 18:41:03 +03:00 committed by GitHub
parent 954c20e2c0
commit 6f16323c9c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -618,7 +618,7 @@ export class FluencePeer {
}; };
} }
if (!result.result) { if (result.result === undefined) {
throw 'Call to marine-js returned no error and empty result. Original request: ' + jsonify(req); throw 'Call to marine-js returned no error and empty result. Original request: ' + jsonify(req);
} }