🔨 Log error message when catching

This commit is contained in:
Sebastien Clement 2020-11-17 21:07:50 +01:00
parent 4335f9c7da
commit 7d174aa610

View File

@ -265,6 +265,7 @@ class WebdavTools {
status.message = `Fail to upload snapshot to nextcloud (${err}) !`; status.message = `Fail to upload snapshot to nextcloud (${err}) !`;
statusTools.setStatus(status); statusTools.setStatus(status);
logger.error(status.message); logger.error(status.message);
logger.error(err);
reject(status.message); reject(status.message);
}); });
}); });
@ -334,6 +335,7 @@ class WebdavTools {
status.error_code = 7; status.error_code = 7;
statusTools.setStatus(status); statusTools.setStatus(status);
logger.error(status.message); logger.error(status.message);
logger.error(err);
reject(err.message); reject(err.message);
}); });
}); });