Commit ac5bd610792b81b38a243f426395031e3b1240c3
1 parent
585189f639
Exists in
master
console catch comprobantes2
Showing
2 changed files
with
6 additions
and
2 deletions
Show diff stats
rutas/comprobantes.js
| ... | ... | @@ -67,6 +67,10 @@ router.post('/comprobante', function(req, res) { |
| 67 | 67 | .then(() => { |
| 68 | 68 | res.status(200).send('Comprobante guardado con éxito'); |
| 69 | 69 | }) |
| 70 | - .catch(err => res.status(500).send(err)); | |
| 70 | + .catch(err => { | |
| 71 | + console.log(err); | |
| 72 | + console.log('error al guardar algo ruta comprobantes'); | |
| 73 | + res.status(500).send(err) | |
| 74 | + }); | |
| 71 | 75 | |
| 72 | 76 | }); |