Local media source: return different error if media folder doesnt exist (#39759)
This commit is contained in:
parent
be8aa16170
commit
d0e44893f5
1 changed files with 2 additions and 0 deletions
|
@ -83,6 +83,8 @@ class LocalSource(MediaSource):
|
|||
full_path = Path(self.hass.config.path("media", location))
|
||||
|
||||
if not full_path.exists():
|
||||
if location == "":
|
||||
raise BrowseError("Media directory does not exist.")
|
||||
raise BrowseError("Path does not exist.")
|
||||
|
||||
if not full_path.is_dir():
|
||||
|
|
Loading…
Add table
Reference in a new issue