Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
DonJayamanne committed Mar 5, 2019
1 parent fc2e01c commit 34d50bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/unittests/common/managers/baseTestManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ export abstract class BaseTestManager implements ITestManager {
const stackStart = message.locationStack![0];
const diagPrefix = this.unitTestDiagnosticService.getMessagePrefix(message.status!);
const severity = this.unitTestDiagnosticService.getSeverity(message.severity)!;
const diagMsg = message.message!.split('\n')[0];
const diagMsg = message.message ? message.message.split('\n')[0] : '';
const diagnostic = new Diagnostic(stackStart.location.range, `${diagPrefix ? `${diagPrefix}: ` : ''}${diagMsg}`, severity);
diagnostic.code = message.code;
diagnostic.source = message.provider;
Expand Down

0 comments on commit 34d50bd

Please sign in to comment.