express icon indicating copy to clipboard operation
express copied to clipboard

Improve error logging by logging full error object

Open Nitin-Mohapatra opened this issue 9 months ago • 0 comments

This PR updates the logerror function in application.js to use console.error(err) instead of err.stack || err.toString().

This change improves error visibility, especially for complex or nested errors (like those thrown by Sequelize), and supports modern features like Error.cause.

Fixes: #6462

Nitin-Mohapatra avatar Apr 17 '25 18:04 Nitin-Mohapatra