U4-3591 - more explicit exception when two IPropertyValueConverter collides

This commit is contained in:
Stephan
2013-11-20 09:57:34 +01:00
parent 84353d1e77
commit a626eeff7d

View File

@@ -92,8 +92,11 @@ namespace Umbraco.Core.Models.PublishedContent
}
else
{
throw new InvalidOperationException(string.Format("More than one converter for property type {0}.{1}",
ContentType.Alias, PropertyTypeAlias));
throw new InvalidOperationException(string.Format("Type '{2}' cannot be an IPropertyValueConverter"
+ " for property '{1}' of content type '{0}' because type '{3}' has already been detected as a converter"
+ " for that property, and only one converter can exist for a property.",
ContentType.Alias, PropertyTypeAlias,
converter.GetType().FullName, _converter.GetType().FullName));
}
}