Changed ArgumentException to InvalidOperationException

This commit is contained in:
Daniël Knippers
2020-01-07 09:34:12 +01:00
parent 491ab5c44f
commit 24afe3f130

View File

@@ -56,7 +56,7 @@ namespace Umbraco.Web.Models.Mapping
if (languages.Count == 0 || segments.Count == 0)
{
// This should not happen
throw new ArgumentException("No languages or segments available");
throw new InvalidOperationException("No languages or segments available");
}
variants = languages