- replace unusued throw new Error by logger.error
- remove unusued variables isWindows, err
- remove unusued logFormat
- remove unusued imports logSessionEnd
This commit is contained in:
MasterAcnolo
2026-09-09 09:21:11 +02:00
parent e2c2dde4a2
commit e541eb442a
7 changed files with 7 additions and 12 deletions

View File

@@ -65,7 +65,7 @@ function createPlaylistFolder(basePath, playlistTitle) {
}
logger.error(`Could not find available playlist folder after 1000 attempts`);
throw new Error("Unable to create playlist folder");
logger.error("Unable to create playlist folder");
} catch (err) {
logger.warn(`Failed to create playlist folder with title "${sanitizedTitle}": ${err.message}`);