Skip to content

Commit

Permalink
Clean up exception messages in JSSSocketChannel
Browse files Browse the repository at this point in the history
  • Loading branch information
edewata committed Aug 1, 2024
1 parent 3792271 commit e3ed4cc
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ public synchronized long read(ByteBuffer[] dsts, int offset, int length) throws
// bytes in another call to unwrap().
} while (result.bytesConsumed() > 0);
} catch (SSLException ssle) {
String msg = "Unable to unwrap data using SSLEngine: ";
String msg = "Unable to read from socket: ";
msg += ssle.getMessage();
throw new IOException(msg, ssle);
}
Expand Down Expand Up @@ -355,7 +355,7 @@ public synchronized long write(ByteBuffer[] srcs, int offset, int length) throws
dst.flip();
} while (sent < encrypted);
} catch (SSLException ssle) {
String msg = "Unable to wrap data with SSLEngine: ";
String msg = "Unable to write to socket: ";
msg += ssle.getMessage();
throw new IOException(msg, ssle);
}
Expand Down

0 comments on commit e3ed4cc

Please sign in to comment.