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/receiveZBlock/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'api/routes/receiveZBlock') diff --git a/api/routes/receiveZBlock/index.js b/api/routes/receiveZBlock/index.js index 3ad6100..4f1ae3d 100644 --- a/api/routes/receiveZBlock/index.js +++ b/api/routes/receiveZBlock/index.js @@ -7,7 +7,7 @@ * 3. Matches regular expression /Qm[A-Za-z0-9]{44}/ * * Returns: - * - errno on failure + * - error on failure * - on success the string is processed for further * validation to the function getvalidity() * @@ -20,9 +20,9 @@ module.exports = (req, res) => { if (regex.test(req.body.zblock)){ getvalidity(req.body.zblock,res); } else { - res.send({errno:"Invalid data"}); + res.send({error:"Invalid data"}); } } else { - res.send({errno:"Invalid data"}); + res.send({error:"Invalid data"}); } } -- cgit v1.2.3