Skip to content

Commit b37f20b

Browse files
author
Brian Cummings
committed
Fixed some SQ complaints
1 parent 690d0fe commit b37f20b

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

PathfinderHonorManager/Controllers/ClubController.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ public class ClubsController : CustomApiController
2626
{
2727
private readonly IClubService _clubService;
2828
private readonly ILogger<ClubsController> _logger;
29-
private readonly IValidator<ClubDto> _validator;
3029

3130
public ClubsController(
3231
IClubService clubService,

PathfinderHonorManager/Service/PathfinderService.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ await _validator.ValidateAsync(
136136
catch (Exception ex)
137137
{
138138
_logger.LogError(ex, "Error adding pathfinder for club {ClubCode}", clubCode);
139-
throw;
139+
throw new InvalidOperationException($"Failed to add pathfinder for club {clubCode}", ex);
140140
}
141141
}
142142

@@ -205,7 +205,7 @@ await _validator.ValidateAsync(
205205
catch (Exception ex)
206206
{
207207
_logger.LogError(ex, "Error updating pathfinder with ID {PathfinderId} for club {ClubCode}", pathfinderId, clubCode);
208-
throw;
208+
throw new InvalidOperationException($"Failed to update pathfinder {pathfinderId} for club {clubCode}", ex);
209209
}
210210
}
211211

@@ -253,7 +253,7 @@ await _validator.ValidateAsync(
253253
catch (Exception ex)
254254
{
255255
_logger.LogError(ex, "Error updating pathfinder with ID {PathfinderId} during bulk update for club {ClubCode}", item.PathfinderId, clubCode);
256-
throw;
256+
throw new InvalidOperationException($"Failed to update pathfinder {item.PathfinderId} during bulk update for club {clubCode}", ex);
257257
}
258258
}
259259
}

0 commit comments

Comments
 (0)