Browse Source

Fix link to error view

pull/73/head
dsanz 8 years ago
parent
commit
2b67a3b4b2
2 changed files with 7 additions and 2 deletions
  1. +6
    -1
      src/Web/WebMonolithic/eShopWeb/Controllers/CatalogController.cs
  2. +1
    -1
      src/Web/WebMonolithic/eShopWeb/Startup.cs

+ 6
- 1
src/Web/WebMonolithic/eShopWeb/Controllers/CatalogController.cs View File

@ -65,6 +65,11 @@ namespace eShopWeb.Controllers
Byte[] b = System.IO.File.ReadAllBytes(path);
return File(b, "image/png");
}
}
public IActionResult Error()
{
return View();
}
}
}

+ 1
- 1
src/Web/WebMonolithic/eShopWeb/Startup.cs View File

@ -63,7 +63,7 @@ namespace eShopWeb
}
else
{
app.UseExceptionHandler("/Home/Error");
app.UseExceptionHandler("/Catalog/Error");
}
app.UseStaticFiles();


Loading…
Cancel
Save