Skip to content

Commit 5d9af73

Browse files
author
Sander Ronde
committed
Fall back to different error message when none is provided by PHPStan (fixes #107)
1 parent 776734a commit 5d9af73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client/src/notificationReceivers/errorManager.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ export class ErrorManager implements Disposable, vscode.CodeActionProvider {
119119

120120
const diagnostic = new vscode.Diagnostic(
121121
range,
122-
`${error.message}${tip}`
122+
`${error.message || error.identifier || '<no message>'} ${tip}`
123123
);
124124
diagnostic.source = 'PHPStan';
125125
if (error.identifier) {

0 commit comments

Comments
 (0)