From 4381770c9d03c5776df61e97df94a66160ad3b08 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Mon, 22 Jun 2020 21:49:20 +0200 Subject: [PATCH] Exception message improved. --- .../Contents/ContentOperationContext.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/Squidex.Domain.Apps.Entities/Contents/ContentOperationContext.cs b/backend/src/Squidex.Domain.Apps.Entities/Contents/ContentOperationContext.cs index 902749ed8..c2a07ae70 100644 --- a/backend/src/Squidex.Domain.Apps.Entities/Contents/ContentOperationContext.cs +++ b/backend/src/Squidex.Domain.Apps.Entities/Contents/ContentOperationContext.cs @@ -60,12 +60,12 @@ namespace Squidex.Domain.Apps.Entities.Contents if (app == null) { - throw new InvalidOperationException("Cannot resolve app."); + throw new InvalidOperationException($"Cannot resolve app with id {appId}."); } if (schema == null) { - throw new InvalidOperationException("Cannot resolve schema."); + throw new InvalidOperationException($"Cannot resolve schema with id id {schemaId}."); } this.app = app;