Merge pull request #368 from Zagrios/bugfix/error-notification-if-version-dont-have-maps-folder

[bugfix] Versions that doesn't have "CustomLevels" folder causes error when installing a playlist
This commit is contained in:
MathieuG-P
2023-12-04 16:28:47 +01:00
committed by GitHub
@@ -159,7 +159,10 @@ export class LocalPlaylistsManagerService {
await this.installBPListFile(playlistPath, version);
const versionMapsFolder = await this.maps.getMapsFolderPath(version);
const realDestMapsFolder = await realpath(versionMapsFolder);
const realDestMapsFolder = await realpath(versionMapsFolder).catch(e => {
log.error(e);
return versionMapsFolder;
});
if(realSourceMapsFolder === realDestMapsFolder) { continue; }