src/lib/server.js
Consider simplifying this complex logical expression. Open
Open
if (body instanceof Error && !body.body) {
// Parse all errors to restify errors
body = new ComposrError(body.error || body.message, body.errorDescription || body.code || body.stack,
body.status || body.statusCode || 500)
}