mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-10 15:35:49 +01:00
#9208 add group permission prefix
This commit is contained in:
@@ -11,6 +11,8 @@ import javax.ws.rs.ext.Provider;
|
||||
public class AlreadyExistsExceptionMapper implements ExceptionMapper<AlreadyExistsException> {
|
||||
@Override
|
||||
public Response toResponse(AlreadyExistsException exception) {
|
||||
return Response.status(Status.CONFLICT).build();
|
||||
return Response.status(Status.CONFLICT)
|
||||
.entity(exception.getMessage())
|
||||
.build();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -90,6 +90,8 @@ public class StatusExceptionMapper<E extends Throwable>
|
||||
logger.debug(msg.toString());
|
||||
}
|
||||
|
||||
return Response.status(status).build();
|
||||
return Response.status(status)
|
||||
.entity(exception.getMessage())
|
||||
.build();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user