enable detailed errors by default to simplify diagnosing issues
This commit is contained in:
parent
a6b1103596
commit
7329d75ec8
|
@ -16,6 +16,8 @@ namespace StardewModdingAPI.Web
|
|||
// configure web server
|
||||
WebHost
|
||||
.CreateDefaultBuilder(args)
|
||||
.CaptureStartupErrors(true)
|
||||
.UseSetting("detailedErrors", "true")
|
||||
.UseStartup<Startup>()
|
||||
.Build()
|
||||
.Run();
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue