diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2023-06-17 02:48:36 +0300 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2023-06-17 02:48:36 +0300 |
commit | 77c9edf809cac2e9577e1b9de5236fd6de6be578 (patch) | |
tree | 14d995609699f9b839ae53a3b046cdad638d324c /api/routes/receiveZChain | |
parent | 01ff1c0a97cd36e69e21bac0776bef21be7ae374 (diff) | |
download | arching-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/receiveZChain')
-rw-r--r-- | api/routes/receiveZChain/index.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/api/routes/receiveZChain/index.js b/api/routes/receiveZChain/index.js index 6915842..a955b79 100644 --- a/api/routes/receiveZChain/index.js +++ b/api/routes/receiveZChain/index.js @@ -3,7 +3,7 @@ * of the application that run the test. * * Returns: - * - errno on failure + * - error on failure * - on success we process with addNSEntriesToFile() * */ @@ -15,7 +15,7 @@ function continuethingsNS(validitycode,sh,res,gotit){ }; addNSEntriesToFile(entry,res); } else { - res.send({errno:"Invalid data"}); + res.send({error:"Invalid data"}); } } /* @@ -27,7 +27,7 @@ function continuethingsNS(validitycode,sh,res,gotit){ * 3. Matches regular expression /k51qzi5uqu5d[A-Za-z0-9]{50}/ * * Returns: - * - errno on failure + * - error on failure * - on success the string is processed for further validation to the * function getNSvalidity() * @@ -40,9 +40,9 @@ module.exports = (req, res) => { if (regex.test(req.body.zchain)){ // && regex.test(req.body.block_signature)){ getNSvalidity(req.body.zchain,res); } else { - res.send({errno:"Invalid data"}); + res.send({error:"Invalid data"}); } } else { - res.send({errno:"Invalid data"}); + res.send({error:"Invalid data"}); } } |