From e349ead8b559347089371f409367eced3c1eeb52 Mon Sep 17 00:00:00 2001 From: Stephan Date: Tue, 22 Jan 2019 13:08:47 +0100 Subject: [PATCH] Better error message --- .../Models/PublishedContent/PublishedContentTypeFactory.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Umbraco.Core/Models/PublishedContent/PublishedContentTypeFactory.cs b/src/Umbraco.Core/Models/PublishedContent/PublishedContentTypeFactory.cs index 5de5842eda..efb39ba844 100644 --- a/src/Umbraco.Core/Models/PublishedContent/PublishedContentTypeFactory.cs +++ b/src/Umbraco.Core/Models/PublishedContent/PublishedContentTypeFactory.cs @@ -79,7 +79,7 @@ namespace Umbraco.Core.Models.PublishedContent } if (!publishedDataTypes.TryGetValue(id, out var dataType)) - throw new ArgumentException("Not a valid datatype identifier.", nameof(id)); + throw new ArgumentException($"Could not find a datatype with identifier {id}.", nameof(id)); return dataType; }