From: Simon Brandhof Date: Mon, 21 May 2012 09:30:49 +0000 (+0200) Subject: SONAR-3495 Initial exception is lost when settings can't be decrypted X-Git-Tag: 3.1~162 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=5fd580c1b1788d125dfbf6dff553da60d090dec3;p=sonarqube.git SONAR-3495 Initial exception is lost when settings can't be decrypted --- diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/config/Settings.java b/sonar-plugin-api/src/main/java/org/sonar/api/config/Settings.java index e507831f57d..397c5dde0b1 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/config/Settings.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/config/Settings.java @@ -80,7 +80,7 @@ public class Settings implements BatchComponent, ServerComponent { try { value = encryption.decrypt(value); } catch (Exception e) { - throw new IllegalStateException("Fail to decrypt the property " + key + ". Please check your secret key."); + throw new IllegalStateException("Fail to decrypt the property " + key + ". Please check your secret key.", e); } } return value;