The Free Software Media System - Server Backend & API
Better exception message when folders or folder items are missing (#13632)
Marc Brooksf035b1162528
diff --git a/Emby.Server.Implementations/Collections/CollectionManager.cs b/Emby.Server.Implementations/Collections/CollectionManager.csindex e414792ba0..4a0662e16a 100644--- a/Emby.Server.Implementations/Collections/CollectionManager.cs+++ b/Emby.Server.Implementations/Collections/CollectionManager.cs@@ -204,7 +204,7 @@ namespace Emby.Server.Implementations.Collections{if (_libraryManager.GetItemById(collectionId) is not BoxSet collection){- throw new ArgumentException("No collection exists with the supplied Id");+ throw new ArgumentException("No collection exists with the supplied collectionId " + collectionId);}List<BaseItem>? itemList = null;@@ -218,7 +218,7 @@ namespace Emby.Server.Implementations.Collectionsif (item is null){- throw new ArgumentException("No item exists with the supplied Id");+ throw new ArgumentException("No item exists with the supplied Id " + id);}if (!currentLinkedChildrenIds.Contains(id))