Extend error message with possible solution (#12962)
Co-authored-by: Zeegaan <nge@umbraco.dk>
(cherry picked from commit 82934838cc)
This commit is contained in:
committed by
Sebastiaan Janssen
parent
48c981d31f
commit
0c84b1a051
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user