Merge branch '7.1.0-installer' of https://github.com/umbraco/Umbraco-CMS into 7.1.0-installer
Conflicts: src/Umbraco.Web.UI.Client/src/installer/installer.service.js src/Umbraco.Web/Install/Controllers/InstallApiController.cs
This commit is contained in:
@@ -256,11 +256,13 @@ namespace Umbraco.Web.Install.Controllers
|
||||
ex = ex.InnerException;
|
||||
}
|
||||
|
||||
//return custom view if we have an install exception
|
||||
var installException = ex as InstallException;
|
||||
if (installException != null)
|
||||
{
|
||||
throw new HttpResponseException(Request.CreateValidationErrorResponse(new
|
||||
{
|
||||
step = step.Name,
|
||||
view = installException.View,
|
||||
model = installException.ViewModel,
|
||||
message = installException.Message
|
||||
@@ -269,6 +271,15 @@ namespace Umbraco.Web.Install.Controllers
|
||||
|
||||
throw new HttpResponseException(
|
||||
Request.CreateValidationErrorResponse("An error occurred executing the step: " + step.Name + ". Error: " + ex.Message));
|
||||
//return standard view + step and message to display generic message
|
||||
return Json(new
|
||||
{
|
||||
step = step.Name,
|
||||
view = "error",
|
||||
message = ex.Message
|
||||
}, HttpStatusCode.BadRequest);
|
||||
|
||||
//return Request.CreateValidationErrorResponse("An error occurred executing the step: " + step.Name + ". Error: " + ex.Message);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user