Improve error messages and logs

This commit is contained in:
Brendan Le Ny 2024-06-24 09:56:16 +02:00 committed by Alex Morel
parent cce36ab990
commit 8e97335de4
4 changed files with 4 additions and 4 deletions

View file

@ -97,7 +97,7 @@ public abstract class AbstractScimService<RMM extends RoleMapperModel, S extends
scimClient.delete(externalId);
getScimResourceDao().delete(resource);
} catch (NoSuchElementException e) {
throw new ScimPropagationException("Failed to delete resource %s, scim mapping not found : " + id, e);
throw new ScimPropagationException("Failed to delete resource %s, scim mapping not found: ".formatted(id), e);
}
}