Skip to content

Commit aa6b5f4

Browse files
NicolappsConvex, Inc.
authored andcommitted
Always call captureMessage with a severity level (#41431)
GitOrigin-RevId: da2128a1edfc19bf125619ca877ef45dbd993f48
1 parent 878ee2e commit aa6b5f4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/cli/lib/versionApi.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,20 +36,20 @@ export async function getVersion(): Promise<VersionResult | null> {
3636

3737
export function validateVersionResult(json: any): VersionResult | null {
3838
if (typeof json !== "object" || json === null) {
39-
Sentry.captureMessage("Invalid version result");
39+
Sentry.captureMessage("Invalid version result", "error");
4040
return null;
4141
}
4242

4343
if (typeof json.message !== "string" && json.message !== null) {
44-
Sentry.captureMessage("Invalid version.message result");
44+
Sentry.captureMessage("Invalid version.message result", "error");
4545
return null;
4646
}
4747

4848
if (
4949
typeof json.cursorRulesHash !== "string" &&
5050
json.cursorRulesHash !== null
5151
) {
52-
Sentry.captureMessage("Invalid version.cursorRulesHash result");
52+
Sentry.captureMessage("Invalid version.cursorRulesHash result", "error");
5353
return null;
5454
}
5555

0 commit comments

Comments
 (0)