Better error message

This commit is contained in:
Stephan
2019-01-22 13:08:47 +01:00
parent 4981f0e828
commit e349ead8b5

View File

@@ -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;
}