Log full path when warning about empty root

This commit is contained in:
Selfhost Alt 2022-04-25 15:28:03 -07:00
parent 7fa08449de
commit 22900a3f67

View File

@ -144,7 +144,7 @@ async function scanFolder(libraryMediaType, folder, serverSettings = {}) {
var libraryItemGrouping = groupFileItemsIntoLibraryItemDirs(libraryMediaType, fileItems) var libraryItemGrouping = groupFileItemsIntoLibraryItemDirs(libraryMediaType, fileItems)
if (!Object.keys(libraryItemGrouping).length) { if (!Object.keys(libraryItemGrouping).length) {
Logger.error('Root path has no media folders', fileItems.length) Logger.error(`Root path has no media folders: ${folderPath}`)
return [] return []
} }