diff --git a/core/java/src/net/i2p/I2PAppContext.java b/core/java/src/net/i2p/I2PAppContext.java index ad562bae4a217aef33c64b28a0b410070146f814..71ae745076019052c6da5394bd7caf16c9118b51 100644 --- a/core/java/src/net/i2p/I2PAppContext.java +++ b/core/java/src/net/i2p/I2PAppContext.java @@ -406,9 +406,11 @@ public class I2PAppContext { } else if (_tmpDir.mkdir()) { _tmpDir.deleteOnExit(); } else { - System.err.println("Could not create temp dir " + _tmpDir.getAbsolutePath()); + System.err.println("WARNING: Could not create temp dir " + _tmpDir.getAbsolutePath()); _tmpDir = new SecureDirectory(_routerDir, "tmp"); - _tmpDir.mkdir(); + _tmpDir.mkdirs(); + if (!_tmpDir.exists()) + System.err.println("ERROR: Could not create temp dir " + _tmpDir.getAbsolutePath()); } } }