From 6cda08053bbe67604a5053700ba8650588a79685 Mon Sep 17 00:00:00 2001 From: Kayne Ruse Date: Sat, 19 Sep 2020 18:07:44 +1000 Subject: [PATCH] Added 501 error --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 8c41142..9ef9206 100644 --- a/index.js +++ b/index.js @@ -27,7 +27,7 @@ const main = (schema, handler) => { case 'create': case 'update': case 'delete': - throw 'keyword not implemented: ' + tokens[pos]; + return [501, 'keyword not implemented: ' + tokens[pos]]; //TODO: implement these keywords break;