Skip to content
Snippets Groups Projects
Commit c385734c authored by Lloyd Hilaiel's avatar Lloyd Hilaiel
Browse files

(loadgen) fix regression, when connections fail loadgen should not crash

parent 07779120
No related branches found
No related tags found
No related merge requests found
......@@ -67,7 +67,7 @@ exports.genAssertionAndVerify = function(cfg, user, ctx, email, audience, cb) {
try {
if (!typeof JSON.parse(r.body) === 'object') throw 'bogus response';
} catch(e) {
return cb(e.toString() + " - " + r.body);
return cb(e.toString() + (r ? (" - " + r.body) : ""));
}
var assertion = crypto.getAssertion({
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment