From 77c9edf809cac2e9577e1b9de5236fd6de6be578 Mon Sep 17 00:00:00 2001 From: kaotisk Date: Sat, 17 Jun 2023 02:48:36 +0300 Subject: API: Error response errno -> error --- api/routes/getZblock/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'api/routes/getZblock/index.js') diff --git a/api/routes/getZblock/index.js b/api/routes/getZblock/index.js index 67626d6..7787d23 100644 --- a/api/routes/getZblock/index.js +++ b/api/routes/getZblock/index.js @@ -46,14 +46,14 @@ module.exports = (req, res) => { regex= /Qm[A-Za-z0-9]{44}/; if (regex.test(req.query.zblock)){ if (req.query.zblock === "QmbFMke1KXqnYyBBWxB74N4c5SBnJMVAiMNRcGu6x1AwQH" ){ - res.send({errno:"Genesis block"}); + res.send({error:"Genesis block"}); } else { fetchZblock(req.query.zblock,res); } } else { - res.send({errno:"Invalid data: regexp failed to pass"}); + res.send({error:"Invalid data: regexp failed to pass"}); } } else { - res.send({errno:"Invalid data: no valid zblock was provided"}); + res.send({error:"Invalid data: no valid zblock was provided"}); } } -- cgit v1.2.3