From 3e2e93a6cb0b19a39324549c6cc666a48d695861 Mon Sep 17 00:00:00 2001 From: Dylan Starink Date: Tue, 22 Oct 2024 10:28:22 -0700 Subject: [PATCH] Add better error message for undefined errors --- app/femr/business/services/system/UserService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/femr/business/services/system/UserService.java b/app/femr/business/services/system/UserService.java index 5e9092567..def5c8949 100644 --- a/app/femr/business/services/system/UserService.java +++ b/app/femr/business/services/system/UserService.java @@ -100,7 +100,7 @@ public ServiceResponse createUser(UserItem user, String password, int newUser = userRepository.createUser(newUser); response.setResponseObject(itemModelMapper.createUserItem(newUser)); } catch (Exception ex) { - response.addError("", ex.getMessage()); + response.addError("error creating user", ex.getMessage()); }