Skip to content

Commit 23883cd

Browse files
author
Asaf Agami
authored
fix: removed exception when severity is unknown (#167)
* fix: removed exception when severity is unknown * fix: better log message
1 parent 2697f82 commit 23883cd

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
### Fixed
99
- The color of the text in the tree view does not match the color from VS theme.
1010
- A problem with partially lost Snyk Code results if a single file contains multiple identical suggestions.
11+
- Error when clicking on issues with unknown severity in the tool window
1112

1213
## [1.1.15]
1314

Snyk.Analytics/SnykAnalyticsService.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,8 @@ public void LogIssueIsViewedEvent(string id, ScanResultIssueType issueTypeParam,
172172
severity = IssueInTreeIsClicked.Severity.Critical;
173173
break;
174174
default:
175-
throw new ArgumentOutOfRangeException(nameof(severityParam));
175+
Logger.Error("Failed to track \"Issue in tree is clicked\" event due to unknown severity: {Severity}", severityParam);
176+
return;
176177
}
177178

178179
Itly.IssueInTreeIsClicked(this.userId, IssueInTreeIsClicked.Ide.VisualStudio, id, issueType, severity);

0 commit comments

Comments
 (0)