]> source.dussan.org Git - sonarqube.git/commitdiff
Fail fast on cache write error
authorDuarte Meneses <duarte.meneses@sonarsource.com>
Thu, 3 Sep 2015 15:26:40 +0000 (17:26 +0200)
committerDuarte Meneses <duarte.meneses@sonarsource.com>
Fri, 4 Sep 2015 08:33:16 +0000 (10:33 +0200)
sonar-batch/src/main/java/org/sonar/batch/cache/WSLoader.java

index 63f21d5c55663bf958a6de0d6dcef0178de683a0..092bab08b0b125241408921458681fafec86a8f0 100644 (file)
@@ -111,7 +111,7 @@ public class WSLoader {
     try {
       cache.put(client.getURI(id).toString(), value);
     } catch (IOException e) {
-      LOG.warn("Error saving to WS cache", e);
+      throw new IllegalStateException("Error saving to WS cache", e);
     }
   }