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/validators/ZblockValidator/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'api/validators/ZblockValidator') 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"}); } } /* -- cgit v1.2.3