XmlPublishedCache - fix casting exception messages
This commit is contained in:
@@ -101,7 +101,7 @@ namespace Umbraco.Tests.PublishedCache
|
||||
Umbraco.Core.Configuration.UmbracoSettings.UseLegacyXmlSchema = true;
|
||||
|
||||
var cache = _umbracoContext.ContentCache.InnerCache as PublishedContentCache;
|
||||
if (cache == null) throw new Exception("Unsupported IPublishedContentCache, only the legacy one is supported.");
|
||||
if (cache == null) throw new Exception("Unsupported IPublishedContentCache, only the Xml one is supported.");
|
||||
|
||||
cache.GetXmlDelegate = (user, preview) =>
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user