changeset 1124:960248dd98c3

Response is not unsuccessful itself because of any single error. The client gets the listing of all warnings and errors anyhow.
author Tom Gottfried <tom@intevation.de>
date Mon, 31 Oct 2016 15:50:05 +0100
parents cbd34e671683
children f9328849a53c
files src/main/java/de/intevation/lada/rest/importer/LafImportService.java
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/main/java/de/intevation/lada/rest/importer/LafImportService.java	Mon Oct 31 13:54:58 2016 +0100
+++ b/src/main/java/de/intevation/lada/rest/importer/LafImportService.java	Mon Oct 31 15:50:05 2016 +0100
@@ -93,8 +93,7 @@
             logger.debug("warns: " + importer.getWarnings().size());
             respData.put("warnings", importer.getWarnings());
         }
-        int code = 200;
-        Response response = new Response(importer.getErrors().isEmpty(), code, respData);
-        return response;
+
+        return new Response(true, 200, respData);
     }
 }
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)