aboutsummaryrefslogtreecommitdiff
path: root/api/validators
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/validators
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/validators')
-rw-r--r--api/validators/ZblockValidator/index.js6
-rw-r--r--api/validators/ZchainValidator/index.js6
2 files changed, 6 insertions, 6 deletions
diff --git a/api/validators/ZblockValidator/index.js b/api/validators/ZblockValidator/index.js
index 2fd9aef..873a971 100644
--- a/api/validators/ZblockValidator/index.js
+++ b/api/validators/ZblockValidator/index.js
@@ -26,7 +26,7 @@ function addEntriesToFile(entry,res){
data.forEach(a=>{
if ( a.zblock === entry.zblock ){
duplicate_entry = 1;
- res.send({errno:"already there"});
+ res.send({error:"already there"});
}
});
@@ -48,7 +48,7 @@ function addEntriesToFile(entry,res){
* of the application that run the test.
*
* Returns :
- * - errno on failure
+ * - error on failure
* - on success we process with addEntriesToFile()
*
*/
@@ -57,7 +57,7 @@ function continuethings(exitcode,sh,res){
var entry = {zblock:sh};
addEntriesToFile(entry,res);
} else {
- res.send({errno:"Invalid data"});
+ res.send({error:"Invalid data"});
}
}
/*
diff --git a/api/validators/ZchainValidator/index.js b/api/validators/ZchainValidator/index.js
index 90cdb35..f4080d0 100644
--- a/api/validators/ZchainValidator/index.js
+++ b/api/validators/ZchainValidator/index.js
@@ -26,7 +26,7 @@ function addEntriesToFile(entry,res){
data.forEach(a=>{
if ( a.zblock === entry.zblock ){
duplicate_entry = 1;
- res.send({errno:"already there"});
+ res.send({error:"already there"});
}
});
@@ -48,7 +48,7 @@ function addEntriesToFile(entry,res){
* of the application that run the test.
*
* Returns :
- * - errno on failure
+ * - error on failure
* - on success we process with addEntriesToFile()
*
*/
@@ -57,7 +57,7 @@ function continuethings(exitcode,sh,res){
var entry = {zblock:sh};
addEntriesToFile(entry,res);
} else {
- res.send({errno:"Invalid data"});
+ res.send({error:"Invalid data"});
}
}
/*