From 8928d5a9482540da5b18ac1b6a64bda1b3c1c6a0 Mon Sep 17 00:00:00 2001 From: Peter van den Hout Date: Fri, 29 Nov 2019 11:06:37 +0100 Subject: [PATCH] Enable UseDatabaseErrorPage --- samples/Opw.PineBlog.Sample/Opw.PineBlog.Sample.csproj | 1 + samples/Opw.PineBlog.Sample/Startup.cs | 1 + 2 files changed, 2 insertions(+) diff --git a/samples/Opw.PineBlog.Sample/Opw.PineBlog.Sample.csproj b/samples/Opw.PineBlog.Sample/Opw.PineBlog.Sample.csproj index 74e469f..1e90af7 100644 --- a/samples/Opw.PineBlog.Sample/Opw.PineBlog.Sample.csproj +++ b/samples/Opw.PineBlog.Sample/Opw.PineBlog.Sample.csproj @@ -15,6 +15,7 @@ + diff --git a/samples/Opw.PineBlog.Sample/Startup.cs b/samples/Opw.PineBlog.Sample/Startup.cs index 54bd050..910dbf4 100644 --- a/samples/Opw.PineBlog.Sample/Startup.cs +++ b/samples/Opw.PineBlog.Sample/Startup.cs @@ -53,6 +53,7 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env) if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); + app.UseDatabaseErrorPage(); } else {