Tweaked error output

This commit is contained in:
2020-09-19 18:09:38 +10:00
parent 6cda08053b
commit ee402e5e26

View File

@@ -27,7 +27,7 @@ const main = (schema, handler) => {
case 'create': case 'create':
case 'update': case 'update':
case 'delete': case 'delete':
return [501, 'keyword not implemented: ' + tokens[pos]]; return [501, 'Keyword not implemented: ' + tokens[pos]];
//TODO: implement these keywords //TODO: implement these keywords
break; break;
@@ -46,7 +46,7 @@ const main = (schema, handler) => {
} }
} }
catch(e) { catch(e) {
console.log('caught', e); console.log('Error:', e);
return [400, e.stack || e]; return [400, e.stack || e];
} }
}; };