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. 2
      org.eclipse.jgit/src/org/eclipse/jgit/util/FS.java

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

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

Loading…
Cancel
Save