enable detailed errors by default to simplify diagnosing issues

This commit is contained in:
Jesse Plamondon-Willard 2020-03-02 20:24:56 -05:00
parent a6b1103596
commit 7329d75ec8
No known key found for this signature in database
GPG Key ID: CF8B1456B3E29F49
2 changed files with 3 additions and 2 deletions

View File

@ -16,6 +16,8 @@ namespace StardewModdingAPI.Web
// configure web server
WebHost
.CreateDefaultBuilder(args)
.CaptureStartupErrors(true)
.UseSetting("detailedErrors", "true")
.UseStartup<Startup>()
.Build()
.Run();

View File

@ -192,7 +192,6 @@ namespace StardewModdingAPI.Web
public void Configure(IApplicationBuilder app, IHostingEnvironment env)
{
// basic config
if (env.IsDevelopment())
app.UseDeveloperExceptionPage();
app
.UseCors(policy => policy