Skip to content

Commit

Permalink
Use a better describing exception
Browse files Browse the repository at this point in the history
  • Loading branch information
Garanas committed May 11, 2024
1 parent 020955d commit 4348c64
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ private static Event parseToken(ReplayBodyToken token) throws IOException {
};

if(stream.available() > 0) {
throw new EOFException();
throw new IllegalStateException("Expected end of stream");
}

return event;
Expand Down

0 comments on commit 4348c64

Please sign in to comment.