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

fix an error in our error handling when verification fails

parent d8341708
No related branches found
No related tags found
No related merge requests found
......@@ -82,7 +82,7 @@ function doVerify(req, resp, next) {
});
},
function(error) {
resp.json({"status":"failure", reason: error.toString()});
resp.json({"status":"failure", reason: (error ? error.toString() : "unknown")});
metrics.report('verify', {
result: 'failure',
rp: audience
......
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