summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2020-03-02 20:24:56 -0500
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2020-03-02 20:24:56 -0500
commit7329d75ec8627639daf08e9c8c1a027eaf760d3c (patch)
tree681d367802956d542ea01720fd0de53dcb321587 /src
parenta6b11035961a0e3cc31653a888554915f7d3c747 (diff)
downloadSMAPI-7329d75ec8627639daf08e9c8c1a027eaf760d3c.tar.gz
SMAPI-7329d75ec8627639daf08e9c8c1a027eaf760d3c.tar.bz2
SMAPI-7329d75ec8627639daf08e9c8c1a027eaf760d3c.zip
enable detailed errors by default to simplify diagnosing issues
Diffstat (limited to 'src')
-rw-r--r--src/SMAPI.Web/Program.cs2
-rw-r--r--src/SMAPI.Web/Startup.cs3
2 files changed, 3 insertions, 2 deletions
diff --git a/src/SMAPI.Web/Program.cs b/src/SMAPI.Web/Program.cs
index 5856fc98..5d13cdf3 100644
--- a/src/SMAPI.Web/Program.cs
+++ b/src/SMAPI.Web/Program.cs
@@ -16,6 +16,8 @@ namespace StardewModdingAPI.Web
// configure web server
WebHost
.CreateDefaultBuilder(args)
+ .CaptureStartupErrors(true)
+ .UseSetting("detailedErrors", "true")
.UseStartup<Startup>()
.Build()
.Run();
diff --git a/src/SMAPI.Web/Startup.cs b/src/SMAPI.Web/Startup.cs
index 29086472..56ef9a79 100644
--- a/src/SMAPI.Web/Startup.cs
+++ b/src/SMAPI.Web/Startup.cs
@@ -192,8 +192,7 @@ namespace StardewModdingAPI.Web
public void Configure(IApplicationBuilder app, IHostingEnvironment env)
{
// basic config
- if (env.IsDevelopment())
- app.UseDeveloperExceptionPage();
+ app.UseDeveloperExceptionPage();
app
.UseCors(policy => policy
.AllowAnyHeader()