🔨 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}) !`;
statusTools.setStatus(status);
logger.error(status.message);
logger.error(err);
reject(status.message);
});
});
@ -334,6 +335,7 @@ class WebdavTools {
status.error_code = 7;
statusTools.setStatus(status);
logger.error(status.message);
logger.error(err);
reject(err.message);
});
});