changes to PanicException

This commit is contained in:
Shannon
2019-08-16 16:18:58 +10:00
parent bbd6e1150e
commit e9717ee86a
3 changed files with 8 additions and 7 deletions

View File

@@ -796,7 +796,7 @@ namespace Umbraco.Web.PublishedCache.NuCache
if (_contentNodes.TryGetValue(id, out var link) && link.Value != null)
return link;
throw new PanicException($"panic: failed to get {description} with id={id}");
throw new PanicException($"failed to get {description} with id={id}");
}
private LinkedNode<ContentNode> GetParentLink(ContentNode content)
@@ -827,7 +827,7 @@ namespace Umbraco.Web.PublishedCache.NuCache
// must have children
if (parent.FirstChildContentId < 0)
throw new Exception("panic: no children");
throw new PanicException("no children");
// if first, clone parent + remove first child
if (parent.FirstChildContentId == content.Id)