🔨 Fix for new version of webdav lib

This commit is contained in:
SebClem 2021-03-23 15:15:37 +01:00
parent 8ecf69c83e
commit 4c96f698eb

View File

@ -87,7 +87,7 @@ class WebdavTools {
await this.client.createDirectory(path);
logger.debug(`Path ${path} created.`);
} catch (error) {
if (error.response.status === 405) logger.debug(`Path ${path} already exist.`);
if (error.status === 405) logger.debug(`Path ${path} already exist.`);
else logger.error(error);
}
}