mirror of
https://github.com/Sebclem/hassio-nextcloud-backup.git
synced 2024-11-22 17:22:58 +01:00
🔨 Log error message when catching
This commit is contained in:
parent
4335f9c7da
commit
7d174aa610
@ -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);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user