diff options
author | Duarte Meneses <duarte.meneses@sonarsource.com> | 2017-12-29 13:09:20 +0100 |
---|---|---|
committer | Duarte Meneses <duarte.meneses@sonarsource.com> | 2017-12-29 14:17:45 +0100 |
commit | 4d6a2243d4799026ee5351261fd238fde400a8bc (patch) | |
tree | ea85f6bdda54ae7519877fbe4ef42ba2761e1380 /src/main | |
parent | 7465b0c71083c5ea1297cbd44f86a84bc00a665b (diff) | |
download | sonar-scanner-cli-4d6a2243d4799026ee5351261fd238fde400a8bc.tar.gz sonar-scanner-cli-4d6a2243d4799026ee5351261fd238fde400a8bc.zip |
SQSCANNER-47 Improve error logs when exception is a MessageException
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/org/sonarsource/scanner/cli/Main.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/sonarsource/scanner/cli/Main.java b/src/main/java/org/sonarsource/scanner/cli/Main.java index 7144ec8..fb7496e 100644 --- a/src/main/java/org/sonarsource/scanner/cli/Main.java +++ b/src/main/java/org/sonarsource/scanner/cli/Main.java @@ -143,7 +143,7 @@ public class Main { private static boolean showStackTrace(Throwable e, boolean debug) { // class not available at compile time (loaded by isolated classloader) - return debug || !"org.sonar.api.utils.MessageException".equals(e.getClass().getName()); + return debug && !"org.sonar.api.utils.MessageException".equals(e.getClass().getName()); } private void suggestDebugMode() { |