From e3654aa81cbf1e4ecbf9f00df2b3bc5d790c837e Mon Sep 17 00:00:00 2001 From: Leni BEAULATON Date: Thu, 3 Apr 2025 13:37:19 +0200 Subject: [PATCH] Bdd2 --- WF_EF_Api/WfApi/Controllers/UsersController.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/WF_EF_Api/WfApi/Controllers/UsersController.cs b/WF_EF_Api/WfApi/Controllers/UsersController.cs index fac14f8..803d609 100644 --- a/WF_EF_Api/WfApi/Controllers/UsersController.cs +++ b/WF_EF_Api/WfApi/Controllers/UsersController.cs @@ -64,9 +64,9 @@ namespace WfApi.Controllers return NoContent(); } } - catch (Exception) + catch (Exception e) { - return StatusCode((int)HttpStatusCode.InternalServerError, new { message = "Internal Server Error" }); + return StatusCode((int)HttpStatusCode.InternalServerError, new { message = "Internal Server Error" +e.Message }); } }