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/getInnerIPFSContent/index.js | |
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/getInnerIPFSContent/index.js')
-rw-r--r-- | api/routes/getInnerIPFSContent/index.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/api/routes/getInnerIPFSContent/index.js b/api/routes/getInnerIPFSContent/index.js index 555d2a3..e17d038 100644 --- a/api/routes/getInnerIPFSContent/index.js +++ b/api/routes/getInnerIPFSContent/index.js @@ -19,14 +19,14 @@ module.exports = (req, res) => { regex= /Qm[A-Za-z0-9]{44}/; if (regex.test(req.query.ipfs)){ if (req.query.ipfs === "QmbFMke1KXqnYyBBWxB74N4c5SBnJMVAiMNRcGu6x1AwQH" ){ - res.send({errno:"Genesis block"}); + res.send({error:"Genesis block"}); } else { fetchZblock(req.query.ipfs,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"}); } } |