Browse Source

Only print stack trace to Sytem.err when debug flag is set

Bug: 362100
Change-Id: Id18de9660f0dc2fb6c30db9770f31f26c874022d
tags/v1.3.0.201202121842-rc4
Kevin Sawicki 12 years ago
parent
commit
2de1d9fb64
1 changed files with 4 additions and 2 deletions
  1. 4
    2
      org.eclipse.jgit/src/org/eclipse/jgit/util/FS.java

+ 4
- 2
org.eclipse.jgit/src/org/eclipse/jgit/util/FS.java View File

@@ -304,14 +304,16 @@ public abstract class FS {
}
} catch (IOException e) {
// Just print on stderr for debugging
e.printStackTrace(System.err);
if (debug)
e.printStackTrace(System.err);
gooblerFail.set(true);
}
try {
is.close();
} catch (IOException e) {
// Just print on stderr for debugging
e.printStackTrace(System.err);
if (debug)
e.printStackTrace(System.err);
gooblerFail.set(true);
}
}

Loading…
Cancel
Save