Skip to content

Commit 683cd15

Browse files
committed
add log
1 parent 67d7fd3 commit 683cd15

File tree

1 file changed

+2
-1
lines changed
  • wechaty-puppet-hostie/src/main/kotlin/io/github/wechaty/grpc

1 file changed

+2
-1
lines changed

wechaty-puppet-hostie/src/main/kotlin/io/github/wechaty/grpc/GrpcPuppet.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,8 @@ class GrpcPuppet(puppetOptions: PuppetOptions) : Puppet(puppetOptions) {
136136
}
137137

138138
if (StringUtils.isEmpty(endPoint) || StringUtils.equals(endPoint, "0.0.0.0")) {
139-
throw Exception()
139+
log.error("cannot get ip by token, check token")
140+
throw Exception("cannot get ip by token, check token")
140141
}
141142
val newFixedThreadPool = newFixedThreadPool(16)
142143
channel = ManagedChannelBuilder.forAddress(endPoint, GRPC_PROT).usePlaintext().executor(newFixedThreadPool).build()

0 commit comments

Comments
 (0)