Skip to content

Commit 1aa63d3

Browse files
Merge pull request #65 from Microsoft/master
Use custom error message in Debug.fail (microsoft#16625)
2 parents 116fa78 + 4313ecf commit 1aa63d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/core.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2344,7 +2344,7 @@ namespace ts {
23442344

23452345
export function fail(message?: string, stackCrawlMark?: Function): void {
23462346
debugger;
2347-
const e = new Error(message ? `Debug Failure. ` : "Debug Failure.");
2347+
const e = new Error(message ? `Debug Failure. ${message}` : "Debug Failure.");
23482348
if ((<any>Error).captureStackTrace) {
23492349
(<any>Error).captureStackTrace(e, stackCrawlMark || fail);
23502350
}

0 commit comments

Comments
 (0)