From 2d95882e52fa043127d0276feefb26b0423c8e4a Mon Sep 17 00:00:00 2001 From: Volodymyr Usarskyy Date: Wed, 9 Oct 2013 20:19:09 +0200 Subject: [PATCH] #20155: Replaced ApplicationException with OrchardException Work Item: 20155 --- src/Orchard/Environment/Features/FeatureManager.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Orchard/Environment/Features/FeatureManager.cs b/src/Orchard/Environment/Features/FeatureManager.cs index 0274d0880..fb2db8a77 100644 --- a/src/Orchard/Environment/Features/FeatureManager.cs +++ b/src/Orchard/Environment/Features/FeatureManager.cs @@ -149,11 +149,11 @@ namespace Orchard.Environment.Features { var states = featuresState.Where(featureState => featureState.Key.Id.Equals(fId, StringComparison.OrdinalIgnoreCase)).ToList(); if (states.Count == 0) { - throw new ApplicationException("Failed to get state for feature " + fId); + throw new OrchardException(T("Failed to get state for feature {0}", fId)); } if (states.Count > 1) { - throw new ApplicationException("Found " + states.Count + " states for feature " + fId); + throw new OrchardException(T("Found {0} states for feature {1}", states.Count, fId)); } return states[0];