Commit f0a6d54e authored by Adrien Béraud's avatar Adrien Béraud

nameservice: handle case of no owner

Change-Id: I40baf16e74577f1be7270014bc06c08978b6cfd8
parent af8d9c11
......@@ -207,6 +207,8 @@ function startServer() {
try {
req.body.owner = formatAddress(req.body.owner);
if (!req.body.owner)
throw "no owner";
} catch (err) {
console.log("Error parsing input: " + err);
http_res.status(400).end(JSON.stringify({"success": false, "error": err}));
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment