From 5fd580c1b1788d125dfbf6dff553da60d090dec3 Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Mon, 21 May 2012 11:30:49 +0200 Subject: [PATCH] SONAR-3495 Initial exception is lost when settings can't be decrypted --- .../src/main/java/org/sonar/api/config/Settings.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5