aboutsummaryrefslogtreecommitdiff
path: root/api/routes/receiveZBlock
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2023-06-17 02:48:36 +0300
committerkaotisk <kaotisk@arching-kaos.org>2023-06-17 02:48:36 +0300
commit77c9edf809cac2e9577e1b9de5236fd6de6be578 (patch)
tree14d995609699f9b839ae53a3b046cdad638d324c /api/routes/receiveZBlock
parent01ff1c0a97cd36e69e21bac0776bef21be7ae374 (diff)
downloadarching-kaos-tools-77c9edf809cac2e9577e1b9de5236fd6de6be578.tar.gz
arching-kaos-tools-77c9edf809cac2e9577e1b9de5236fd6de6be578.tar.bz2
arching-kaos-tools-77c9edf809cac2e9577e1b9de5236fd6de6be578.zip
API: Error response errno -> error
Diffstat (limited to 'api/routes/receiveZBlock')
-rw-r--r--api/routes/receiveZBlock/index.js6
1 files changed, 3 insertions, 3 deletions
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"});
}
}