auth0-extensions/auth0-delegated-administration-extension

View on GitHub
server/lib/middlewares/errorHandler.js

Summary

Maintainability
A
40 mins
Test Coverage

Consider simplifying this complex logical expression.
Open

    if (err && (err.status || err.statusCode)) {
      res.status(err.status || err.statusCode);
      return res.json({
        error: err.code || err.name,
        message: err.message || err.name
Severity: Major
Found in server/lib/middlewares/errorHandler.js - About 40 mins to fix

    There are no issues that match your filters.

    Category
    Status