summaryrefslogtreecommitdiffstats
path: root/sonar-batch
diff options
context:
space:
mode:
authorDuarte Meneses <duarte.meneses@sonarsource.com>2015-09-03 17:26:40 +0200
committerDuarte Meneses <duarte.meneses@sonarsource.com>2015-09-04 10:33:16 +0200
commit3fb22d775c9d195fed69ca154ee98d208b81c62f (patch)
tree49278deb2d1cb6b4c2c3d7280b8a3a951324d78a /sonar-batch
parentf1025acb712db106046eb1d9933c55907b2e983c (diff)
downloadsonarqube-3fb22d775c9d195fed69ca154ee98d208b81c62f.tar.gz
sonarqube-3fb22d775c9d195fed69ca154ee98d208b81c62f.zip
Fail fast on cache write error
Diffstat (limited to 'sonar-batch')
-rw-r--r--sonar-batch/src/main/java/org/sonar/batch/cache/WSLoader.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/sonar-batch/src/main/java/org/sonar/batch/cache/WSLoader.java b/sonar-batch/src/main/java/org/sonar/batch/cache/WSLoader.java
index 63f21d5c556..092bab08b0b 100644
--- a/sonar-batch/src/main/java/org/sonar/batch/cache/WSLoader.java
+++ b/sonar-batch/src/main/java/org/sonar/batch/cache/WSLoader.java
@@ -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);
}
}