X-Git-Url: https://code.wpia.club/?p=gigi.git;a=blobdiff_plain;f=src%2Fclub%2Fwpia%2Fgigi%2FGigi.java;h=e76c51710e6c1c664d19c72c176d238f9f05c2ee;hp=660c3d308c9645d7f3003b7cee51d1cb8115c132;hb=8bb6a6f9dd49888a07b0588ae9773cc52d51cdb5;hpb=ac3bac5a7cdbb446da41aeb3397e02fa7a41ed60 diff --git a/src/club/wpia/gigi/Gigi.java b/src/club/wpia/gigi/Gigi.java index 660c3d30..e76c5171 100644 --- a/src/club/wpia/gigi/Gigi.java +++ b/src/club/wpia/gigi/Gigi.java @@ -6,7 +6,7 @@ import java.io.UnsupportedEncodingException; import java.math.BigInteger; import java.nio.channels.FileChannel; import java.nio.file.FileSystems; -import java.nio.file.Path; +import java.nio.file.NoSuchFileException; import java.security.KeyStore; import java.security.MessageDigest; import java.security.NoSuchAlgorithmException; @@ -318,8 +318,10 @@ public final class Gigi extends HttpServlet { if (knownPasswordHashesRequired) { throw new RuntimeException("Error while opening password hash database, refusing startup", e); } else { - System.err.println("Error while opening password hash database, passwords will be checked only by strength"); - e.printStackTrace(); + System.err.println("Warning: A problem was encountered while opening the password hash database, passwords will be checked only by strength."); + if ( !(e instanceof NoSuchFileException)) { + e.printStackTrace(); + } return new PasswordStrengthChecker(); } }