Commit 064c25ad authored by Ivan Tancara's avatar Ivan Tancara
Browse files

codigo de error en respuestas

parent 2e2ae7a6
......@@ -130,12 +130,12 @@ app.post ('/send', AuthorizationMiddleware, async function (req, res) {
console.log('____________________________________________________________________________________________________ERROR_RESPONSE_');
console.log(error.response.data);
console.log('¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯_ERROR_RESPONSE_');
mensajeError(res, error.response.data);
mensajeError(res, error.response.data, 400);
} else {
console.log('___________________________________________________________________________________________________ERROR_MESSAGE_');
console.log(error.message);
console.log('¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯ERROR_MESSAGE_');
mensajeError(res, error.message, 401);
mensajeError(res, error.message, 400);
}
}
})
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment