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 1b9ab04 commit b88887eCopy full SHA for b88887e
editors/code/src/util.ts
@@ -3,7 +3,12 @@ import * as vscode from "vscode";
3
import { strict as nodeAssert } from "assert";
4
5
export function assert(condition: unknown, explanation: string): asserts condition {
6
- nodeAssert(condition, explanation);
+ try {
7
+ nodeAssert(condition, explanation);
8
+ } catch (err) {
9
+ log.error(`Assertion failed:`, explanation);
10
+ throw err;
11
+ }
12
}
13
14
export const log = {
0 commit comments