From ee0297bb69e86a499fe75aa9ee2a6305d18e3b68 Mon Sep 17 00:00:00 2001 From: Stephan Date: Mon, 15 Jun 2015 17:36:21 +0200 Subject: [PATCH] U4-6631 - throw on missing physical template file --- src/Umbraco.Web/Mvc/RenderMvcController.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Umbraco.Web/Mvc/RenderMvcController.cs b/src/Umbraco.Web/Mvc/RenderMvcController.cs index 37c8c6630a..03f93d89e3 100644 --- a/src/Umbraco.Web/Mvc/RenderMvcController.cs +++ b/src/Umbraco.Web/Mvc/RenderMvcController.cs @@ -101,10 +101,8 @@ namespace Umbraco.Web.Mvc protected ActionResult CurrentTemplate(T model) { var template = ControllerContext.RouteData.Values["action"].ToString(); - if (!EnsurePhsyicalViewExists(template)) - { - return Content(""); - } + if (EnsurePhsyicalViewExists(template) == false) + throw new Exception("No physical template file was found for template " + template); return View(template, model); }