mirror of
https://github.com/Sebclem/hassio-nextcloud-backup.git
synced 2024-08-18 13:44:55 +02:00
🚑 Fix crash on startup
This commit is contained in:
parent
8c03b24bc4
commit
c4f5b00a84
@ -266,7 +266,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?.stack);
|
logger.error(err.stack);
|
||||||
reject(status.message);
|
reject(status.message);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
@ -336,7 +336,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?.stack);
|
logger.error(err.stack);
|
||||||
reject(err.message);
|
reject(err.message);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user