Fixing Setup

--HG--
branch : 1.x
This commit is contained in:
Sebastien Ros
2011-12-28 15:18:42 -08:00
parent f3b8003b4a
commit 42ba61469b
2 changed files with 4 additions and 6 deletions

View File

@@ -124,9 +124,9 @@ namespace Orchard.Setup.Controllers {
// redirect to the welcome page.
return Redirect("~/");
} catch (Exception) {
Logger.Error(T("Setup failed:").Text);
_notifier.Error(T("Setup failed:"));
} catch (Exception ex) {
Logger.Error(ex, "Setup failed");
_notifier.Error(T("Setup failed: {0}", ex.Message));
model.Recipes = recipes;
foreach (var recipe in recipes.Where(recipe => recipe.Name == model.Recipe)) {

View File

@@ -79,9 +79,7 @@ namespace Orchard.Setup.Services {
"PackagingServices", "Orchard.Packaging", "Gallery", "Orchard.Recipes",
};
if (context.EnabledFeatures != null) {
context.EnabledFeatures = hardcoded.Union(context.EnabledFeatures).Distinct();
}
context.EnabledFeatures = hardcoded.Union(context.EnabledFeatures ?? Enumerable.Empty<string>()).Distinct();
var shellSettings = new ShellSettings(_shellSettings);