From 35111446c5948c2dca2f253fd309af973e6ef3e0 Mon Sep 17 00:00:00 2001 From: Trevor Gerhardt Date: Fri, 27 Oct 2023 16:31:14 +0800 Subject: [PATCH] Set the status before returning the error --- .../analysis/controllers/OpportunityDatasetController.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/com/conveyal/analysis/controllers/OpportunityDatasetController.java b/src/main/java/com/conveyal/analysis/controllers/OpportunityDatasetController.java index 6373d3d66..ec46a3e23 100644 --- a/src/main/java/com/conveyal/analysis/controllers/OpportunityDatasetController.java +++ b/src/main/java/com/conveyal/analysis/controllers/OpportunityDatasetController.java @@ -345,6 +345,7 @@ private OpportunityDatasetUploadStatus createOpportunityDataset(Request req, Res parameters = extractStringParameters(formFields); } catch (Exception e) { status.completeWithError(e); + res.status(400); return status; }