From 78c72bdd724fc323d25780c6f30744ee4fd216ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20Le=20Lez?= Date: Wed, 12 Mar 2025 12:23:27 +0100 Subject: [PATCH] fix: linter --- .../main/java/enseirb/myinpulse/controller/SharedApi.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/MyINPulse-back/src/main/java/enseirb/myinpulse/controller/SharedApi.java b/MyINPulse-back/src/main/java/enseirb/myinpulse/controller/SharedApi.java index e35818c..519ee41 100644 --- a/MyINPulse-back/src/main/java/enseirb/myinpulse/controller/SharedApi.java +++ b/MyINPulse-back/src/main/java/enseirb/myinpulse/controller/SharedApi.java @@ -10,7 +10,6 @@ import org.springframework.security.core.annotation.AuthenticationPrincipal; import org.springframework.security.oauth2.jwt.Jwt; import org.springframework.web.bind.annotation.*; -import java.io.File; import java.io.FileNotFoundException; @SpringBootApplication @@ -84,8 +83,10 @@ public class SharedApi { @PathVariable int appointmentId, @AuthenticationPrincipal Jwt principal) { try { sharedApiService.getPDFReport(appointmentId, principal.getClaimAsString("email")); - } catch (FileNotFoundException | DocumentException e) { - System.out.println(e); + } catch (FileNotFoundException e) { + System.out.println(e + "File not found"); + } catch (DocumentException e) { + System.out.println(e + "Document exception"); } }