We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef64ed4 commit e8aed24Copy full SHA for e8aed24
src/vs/base/common/assert.ts
@@ -35,9 +35,12 @@ export function assert(condition: boolean): void {
35
}
36
37
38
+/**
39
+ * Like assert, but doesn't throw.
40
+ */
41
export function softAssert(condition: boolean): void {
42
if (!condition) {
- onUnexpectedError(new BugIndicatingError('Assertion Failed'));
43
+ onUnexpectedError(new BugIndicatingError('Soft Assertion Failed'));
44
45
46
0 commit comments