diff --git a/backend/services/jsonErrorHandler.js b/backend/services/jsonErrorHandler.js
index 0a69a05c1887978f2e157a72675d2db1aaa42072..2627c7d64f3815c34a7797cc7938ef01551cb470 100644
--- a/backend/services/jsonErrorHandler.js
+++ b/backend/services/jsonErrorHandler.js
@@ -4,7 +4,7 @@
 const jsonErrorHandler = function (error, req, res, next) {
   if (!res.headersSent) {
     if (process.env.NODE_ENV === "development") {
-      res.status(500).json({ message: error.toString() });
+      res.status(500).json({ message: error.stack });
     } else {
       // Hide error details in production to avoid security issues
       res.status(500).json({ message: "Internal server error" });