Skip to content

Commit c9bc457

Browse files
author
Brian Cummings
committed
Minor SQ fixes
1 parent 6f2e719 commit c9bc457

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

PathfinderHonorManager/Service/HonorService.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,10 @@ await _validator.ValidateAsync(
8989

9090
return _mapper.Map<Outgoing.HonorDto>(honor);
9191
}
92+
catch (ValidationException)
93+
{
94+
throw;
95+
}
9296
catch (Exception ex)
9397
{
9498
_logger.LogError(ex, "Error adding honor with name {HonorName}", newHonor.Name);
@@ -121,6 +125,10 @@ await _validator.ValidateAsync(
121125

122126
return _mapper.Map<Outgoing.HonorDto>(existingHonor);
123127
}
128+
catch (ValidationException)
129+
{
130+
throw;
131+
}
124132
catch (Exception ex)
125133
{
126134
_logger.LogError(ex, "Error updating honor with ID {HonorId} and name {HonorName}", id, updatedHonor.Name);

PathfinderHonorManager/Startup.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,6 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
189189

190190
app.UseRouting();
191191

192-
// app.UseCors("AllowSpecificOrigin");
193-
194192
app.UseAuthentication();
195193
app.UseAuthorization();
196194

0 commit comments

Comments
 (0)