Browse Source

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

Bug: 362100
Change-Id: Id18de9660f0dc2fb6c30db9770f31f26c874022d
stable-1.3
Kevin Sawicki 13 years ago
parent
commit
2de1d9fb64
  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) {
// 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