aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/org/sonarsource
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/org/sonarsource')
-rw-r--r--src/main/java/org/sonarsource/scanner/cli/Main.java2
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() {