diff options
author | Léo Geoffroy <99647462+leo-geoffroy-sonarsource@users.noreply.github.com> | 2022-10-11 09:23:16 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2022-10-12 20:03:44 +0000 |
commit | 2c36dc6f775adbdbd6688a9329064ec0ff332941 (patch) | |
tree | 46eba88e9c4b173ddd72697ad00b367555184c4e /server/sonar-server-common/src/main | |
parent | b6bffded1c8e125cb2621b47ddcb9ddb0799b98f (diff) | |
download | sonarqube-2c36dc6f775adbdbd6688a9329064ec0ff332941.tar.gz sonarqube-2c36dc6f775adbdbd6688a9329064ec0ff332941.zip |
SONAR-17412 minor fixes on log and tests (#6812)
Diffstat (limited to 'server/sonar-server-common/src/main')
-rw-r--r-- | server/sonar-server-common/src/main/java/org/sonar/server/favorite/FavoriteUpdater.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/sonar-server-common/src/main/java/org/sonar/server/favorite/FavoriteUpdater.java b/server/sonar-server-common/src/main/java/org/sonar/server/favorite/FavoriteUpdater.java index 2e27ce531f5..261bd7fee94 100644 --- a/server/sonar-server-common/src/main/java/org/sonar/server/favorite/FavoriteUpdater.java +++ b/server/sonar-server-common/src/main/java/org/sonar/server/favorite/FavoriteUpdater.java @@ -51,7 +51,7 @@ public class FavoriteUpdater { .setUserUuid(userUuid) .setComponentUuid(componentDto.uuid()) .build(), dbSession); - checkArgument(existingFavoriteOnComponent.isEmpty(), "Component '%s' is already a favorite", componentDto.getKey()); + checkArgument(existingFavoriteOnComponent.isEmpty(), "Component '%s' (uuid: %s) is already a favorite", componentDto.getKey(), componentDto.uuid()); List<PropertyDto> existingFavorites = dbClient.propertiesDao().selectByKeyAndUserUuidAndComponentQualifier(dbSession, PROP_FAVORITE_KEY, userUuid, componentDto.qualifier()); if (existingFavorites.size() >= 100) { @@ -81,6 +81,6 @@ public class FavoriteUpdater { .setComponentUuid(component.uuid()) .setUserUuid(userUuid), userLogin, component.getKey(), component.name(), component.qualifier()); - checkArgument(result == 1, "Component '%s' is not a favorite", component.getKey()); + checkArgument(result == 1, "Component '%s' (uuid: %s) is not a favorite", component.getKey(), component.uuid()); } } |