🚑 Fix crash on startup

This commit is contained in:
Sebastien Clement 2020-11-17 22:21:30 +01:00
parent 8c03b24bc4
commit c4f5b00a84

View File

@ -266,7 +266,7 @@ class WebdavTools {
status.message = `Fail to upload snapshot to nextcloud (${err}) !`;
statusTools.setStatus(status);
logger.error(status.message);
logger.error(err?.stack);
logger.error(err.stack);
reject(status.message);
});
});
@ -336,7 +336,7 @@ class WebdavTools {
status.error_code = 7;
statusTools.setStatus(status);
logger.error(status.message);
logger.error(err?.stack);
logger.error(err.stack);
reject(err.message);
});
});