Skip to content

Commit

Permalink
Throw a caught exception instead of doing nothing (#12979)
Browse files Browse the repository at this point in the history
Motivation:
An exception has been caught and ignored.

Modification:
Throw the caught exception to make it useful.

Result: 
Not swallow exception

Co-authored-by: Norman Maurer <norman_maurer@apple.com>
  • Loading branch information
needmorecode and normanmaurer committed Nov 10, 2022
1 parent c4f4bed commit e437e21
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ public void drop(DefaultCompositeBuffer buf) {
}
}
}
if (re != null) {
throw re;
}
}

@Override
Expand Down

0 comments on commit e437e21

Please sign in to comment.