aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-ce
diff options
context:
space:
mode:
authorSébastien Lesaint <sebastien.lesaint@sonarsource.com>2017-03-06 11:51:51 +0100
committerSébastien Lesaint <sebastien.lesaint@sonarsource.com>2017-03-13 16:00:01 +0100
commit9730736b59ed79bd14149804189b8843b43737ac (patch)
tree37094f660e4435cfeee313b7ee41254dc3071a3c /server/sonar-ce
parentfbff4f5366bd8fb2348eb5ceab1cb3c1a929dc80 (diff)
downloadsonarqube-9730736b59ed79bd14149804189b8843b43737ac.tar.gz
sonarqube-9730736b59ed79bd14149804189b8843b43737ac.zip
SONAR-7485 log MessageException inline in CeServer
Diffstat (limited to 'server/sonar-ce')
-rw-r--r--server/sonar-ce/src/main/java/org/sonar/ce/app/CeServer.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/server/sonar-ce/src/main/java/org/sonar/ce/app/CeServer.java b/server/sonar-ce/src/main/java/org/sonar/ce/app/CeServer.java
index d5ad3095af8..82b9f1ecc44 100644
--- a/server/sonar-ce/src/main/java/org/sonar/ce/app/CeServer.java
+++ b/server/sonar-ce/src/main/java/org/sonar/ce/app/CeServer.java
@@ -151,6 +151,9 @@ public class CeServer implements Monitored {
try {
startup();
return true;
+ } catch (org.sonar.api.utils.MessageException | org.sonar.process.MessageException e) {
+ LOG.error("Compute Engine startup failed: " + e.getMessage());
+ return false;
} catch (Throwable e) {
LOG.error("Compute Engine startup failed", e);
return false;