import java.math.BigInteger;
import java.nio.channels.FileChannel;
import java.nio.file.FileSystems;
import java.math.BigInteger;
import java.nio.channels.FileChannel;
import java.nio.file.FileSystems;
import java.security.KeyStore;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.security.KeyStore;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
if (knownPasswordHashesRequired) {
throw new RuntimeException("Error while opening password hash database, refusing startup", e);
} else {
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();
+ }