Skip to content

Commit

Permalink
capture and report analyzer failures
Browse files Browse the repository at this point in the history
  • Loading branch information
brettfo committed Dec 20, 2024
1 parent 2c7a4a0 commit fa2a52c
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,17 @@ internal async Task<AnalysisResult> RunWithErrorHandlingAsync(string repoRoot, s
UpdatedDependencies = [],
};
}
catch (Exception ex)
{
analysisResult = new AnalysisResult
{
ErrorType = ErrorType.Unknown,
ErrorDetails = ex.ToString(),
UpdatedVersion = string.Empty,
CanUpdate = false,
UpdatedDependencies = [],
};
}

return analysisResult;
}
Expand Down

0 comments on commit fa2a52c

Please sign in to comment.