Browse Source

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

stable-1.3
Shawn Pearce 13 years ago committed by Code Review
parent
commit
80c5210409
  1. 6
      org.eclipse.jgit/src/org/eclipse/jgit/util/FS.java

6
org.eclipse.jgit/src/org/eclipse/jgit/util/FS.java

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

Loading…
Cancel
Save