XmlPublishedCache - fix casting exception messages

This commit is contained in:
Stephan
2013-04-04 15:24:29 -02:00
parent 4201d678fa
commit f2d7e3549d
7 changed files with 8 additions and 8 deletions

View File

@@ -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) =>
{