Fix link to error view
This commit is contained in:
parent
812552cf3f
commit
2b67a3b4b2
@ -65,6 +65,11 @@ namespace eShopWeb.Controllers
|
||||
Byte[] b = System.IO.File.ReadAllBytes(path);
|
||||
return File(b, "image/png");
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public IActionResult Error()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -63,7 +63,7 @@ namespace eShopWeb
|
||||
}
|
||||
else
|
||||
{
|
||||
app.UseExceptionHandler("/Home/Error");
|
||||
app.UseExceptionHandler("/Catalog/Error");
|
||||
}
|
||||
|
||||
app.UseStaticFiles();
|
||||
|
Loading…
x
Reference in New Issue
Block a user