Skip to content

Commit

Permalink
swallow error lines
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Dec 17, 2024
1 parent ee548da commit 0a11bb2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion eo-runtime/src/main/java/org/eolang/Dataized.java
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ public Dataized(final Phi src, final Logger log) {
*
* @return The data
*/
@SuppressWarnings("PMD.PreserveStackTrace")
public byte[] take() {
final int before = Dataized.LEVEL.get();
Dataized.LEVEL.set(before + 1);
Expand Down Expand Up @@ -164,7 +165,7 @@ public byte[] take() {
String.join("\n ⇢ ", clean)
)
);
throw ex;
throw new EOerror.ExError(ex.enclosure());
} finally {
Dataized.LEVEL.set(before);
}
Expand Down

0 comments on commit 0a11bb2

Please sign in to comment.