Skip to content
Snippets Groups Projects
Commit f0a6d54e authored by Adrien Béraud's avatar Adrien Béraud
Browse files

nameservice: handle case of no owner

Change-Id: I40baf16e74577f1be7270014bc06c08978b6cfd8
parent af8d9c11
No related branches found
No related tags found
No related merge requests found
......@@ -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}));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment