Merge pull request #17136 from hepin1989/fix-17315
#17135 replace substring with take to avoid Exception in non English evn
This commit is contained in:
commit
fb7c76736f
1 changed files with 1 additions and 1 deletions
|
|
@ -70,7 +70,7 @@ class TcpConnectionSpec extends AkkaSpec("""
|
|||
clientSocket.write(ByteBuffer.allocate(1))
|
||||
null
|
||||
} catch {
|
||||
case NonFatal(e) ⇒ e.getMessage.substring(0, 15)
|
||||
case NonFatal(e) ⇒ e.getMessage.take(15)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue