@munlib/common 1.0.204 → 1.0.205
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -7,7 +7,7 @@ var instituciones_pagos_1 = require("../events/types/instituciones-pagos");
|
|
|
7
7
|
var errorHandler = function (err, req, res, next) {
|
|
8
8
|
var statusCode = 500; // Código de estado por defecto para errores genéricos
|
|
9
9
|
if (err instanceof custom_error_1.CustomError) {
|
|
10
|
-
console.log("instacoia de custom Error");
|
|
10
|
+
console.log("instacoia de custom Error", err.statusCode, err.serializeErrors());
|
|
11
11
|
return res.status(err.statusCode).send(err.serializeErrors());
|
|
12
12
|
}
|
|
13
13
|
console.log("dorecto Error");
|