Put "start at" at the top of the modal
[oweals/peertube.git] / server.ts
index eccd19919b3d56db1009f31ed7aa2626a6a3f665..2db39ab06c3c0813d4449f4ee3ba1219cbae825f 100644 (file)
--- a/server.ts
+++ b/server.ts
@@ -166,7 +166,10 @@ app.use(function (err, req, res, next) {
     error = err.stack || err.message || err
   }
 
-  logger.error('Error in controller.', { err: error })
+  // Sequelize error
+  const sql = err.parent ? err.parent.sql : undefined
+
+  logger.error('Error in controller.', { err: error, sql })
   return res.status(err.status || 500).end()
 })