Skip to content

Commit

Permalink
Updated the catch exception to log the error
Browse files Browse the repository at this point in the history
  • Loading branch information
sam-c-dfe committed Aug 6, 2024
1 parent 76c461e commit 0c9225d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -207,9 +207,9 @@ private T GetRatioProperty<T>(string propertyToCheck, string ratioName, Qualific

return (T)requirement!.GetType().GetProperty(propertyToCheck)!.GetValue(requirement, null)!;
}
catch
catch(Exception ex)
{
logger.LogError("Could not find property: {PropertyToCheck} within {RatioName} for qualification: {QualificationId}",
logger.LogError(ex,"Could not find property: {PropertyToCheck} within {RatioName} for qualification: {QualificationId}",
propertyToCheck, ratioName, qualification.QualificationId);
throw;
}
Expand Down

0 comments on commit 0c9225d

Please sign in to comment.