Skip to content
This repository was archived by the owner on Aug 2, 2023. It is now read-only.

Commit 50525e0

Browse files
authored
fix: Improve missing vfolder error message (#466)
1 parent fa07402 commit 50525e0

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

changes/466.fix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Include the exact list of missing/invalid vfolders when returning `VFolderNotFound` error

src/ai/backend/manager/registry.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -827,7 +827,7 @@ async def enqueue_session(
827827
item['unmanaged_path'] if item['unmanaged_path'] else '',
828828
))
829829
if mounts and set(mounts) > matched_mounts:
830-
raise VFolderNotFound
830+
raise VFolderNotFound(extra_data=[*(set(mounts) - matched_mounts)])
831831
mounts = determined_mounts
832832

833833
ids = []

0 commit comments

Comments
 (0)