diff --git a/src/main/java/app/attestation/server/AttestationServer.java b/src/main/java/app/attestation/server/AttestationServer.java index 9ba9d348..e2e1dd4d 100644 --- a/src/main/java/app/attestation/server/AttestationServer.java +++ b/src/main/java/app/attestation/server/AttestationServer.java @@ -915,7 +915,7 @@ private static void writeQrCode(final byte[] contents, final OutputStream output BarcodeFormat.QR_CODE, QR_CODE_PIXEL_SIZE, QR_CODE_PIXEL_SIZE, hints); MatrixToImageWriter.writeToStream(result, "png", output); } catch (WriterException e) { - throw new RuntimeException(e); + throw new IOException(e); } }