mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-09-23 04:43:35 +08:00
Improving error messages in setup failure scenario
Inner exceptions are looped and output to provide richer error context Error message text is not localized
This commit is contained in:
@@ -132,7 +132,10 @@ namespace Orchard.Setup.Controllers {
|
||||
return Redirect("~/");
|
||||
}
|
||||
catch (Exception exception) {
|
||||
_notifier.Error(T("Setup failed: " + exception.Message));
|
||||
_notifier.Error(T("Setup failed:"));
|
||||
for(var scan = exception; scan !=null; scan = scan.InnerException){
|
||||
_notifier.Error(scan.Message);
|
||||
}
|
||||
return IndexViewResult(model);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user