Commit 81978405 authored by Gilles Mouchard's avatar Gilles Mouchard
Browse files

Fixed artifact type in review schema.

Disabled debug logs in PKM configuration file: this should speed up PKM server.
parent 93bf1a48
Pipeline #18453 passed with stages
in 9 minutes and 54 seconds
......@@ -56,7 +56,7 @@
},
"type": {
"type": "string",
"enum":["code", "model", "diagram"]
"enum":[ "Diagram", "Code", "Document", "Doc", "Annotation", "Log", "Comment", "TESTAR_State_Model", "UML Model", "NER", "SRL" ]
}
},
"required": [
......
......@@ -52,6 +52,7 @@ class ExpressServer {
// eslint-disable-next-line no-unused-vars
this.app.use((err, req, res, next) => {
// format errors
console.warn('\x1b[31m' + req.method + ' ' + req.url + ' HTTP/' + req.httpVersion + ' => ' + (err.status || 500) + '\x1b[0m');
res.status(err.status || 500).json({
message: err.message || err,
errors: err.errors || '',
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment