aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Brooks <IDisposable@gmail.com>2025-03-01 00:01:21 -0600
committerGitHub <noreply@github.com>2025-02-28 23:01:21 -0700
commitf035b1162528ed4c351ae03f2c217499e46bdd1a (patch)
tree7524010bb6bd8c8d2459b825addd280ab66039c6
parent93dd5551df280f53eaa441156cc6016ee384e554 (diff)
Better exception message when folders or folder items are missing (#13632)
Emit the not-found Id in the exception for easier diagnosis
-rw-r--r--Emby.Server.Implementations/Collections/CollectionManager.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Emby.Server.Implementations/Collections/CollectionManager.cs b/Emby.Server.Implementations/Collections/CollectionManager.cs
index e414792ba..4a0662e16 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.Collections
if (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))