Skip to content

Commit 660d6a6

Browse files
committed
opti
1 parent 8209069 commit 660d6a6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/sink/protocol/opcua/server/OpcUaKeyStoreLoader.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,9 @@ OpcUaKeyStoreLoader load(final Path baseDir, final char[] password) throws Excep
119119
final PublicKey serverPublicKey = serverCertificate.getPublicKey();
120120
serverKeyPair = new KeyPair(serverPublicKey, (PrivateKey) serverPrivateKey);
121121
} else {
122-
throw new Exception("Invalid keyStore");
122+
throw new Exception(
123+
"Invalid keyStore, the serverPrivateKey is "
124+
+ (serverPrivateKey != null ? serverPrivateKey.getClass().getSimpleName() : "null"));
123125
}
124126

125127
return this;

0 commit comments

Comments
 (0)