diff --git a/src/main/java/stirling/software/SPDF/SPdfApplication.java b/src/main/java/stirling/software/SPDF/SPdfApplication.java index b2291186..d72d02fb 100644 --- a/src/main/java/stirling/software/SPDF/SPdfApplication.java +++ b/src/main/java/stirling/software/SPDF/SPdfApplication.java @@ -64,7 +64,8 @@ public class SPdfApplication { try { Thread.sleep(1000); } catch (InterruptedException e) { - throw new InterruptedException("Error"); + Thread.currentThread().interrupt(); + throw new RuntimeException("Thread interrupted while sleeping", e); } try {