Extend error message with possible solution (#12962)

Co-authored-by: Zeegaan <nge@umbraco.dk>
(cherry picked from commit 82934838cc)
This commit is contained in:
Nikolaj Geisle
2022-09-07 14:43:26 +02:00
committed by Sebastiaan Janssen
parent 48c981d31f
commit 0c84b1a051

View File

@@ -243,7 +243,7 @@ public class ContentCache : PublishedCacheBase, IPublishedContentCache, INavigab
IPublishedContent? rootNode = GetByRoute(preview, "/", true);
if (rootNode == null)
{
throw new Exception("Failed to get node at /.");
throw new Exception("Failed to get node at /. This might be because you're trying to publish a variant, with no domains setup");
}
// remove only if we're the default node