Skip to content

Commit a4a18be

Browse files
committed
C++: Recognise cannot_open_source_file_reason error
1 parent c9603e6 commit a4a18be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpp/ql/src/Telemetry/Diagnostics.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@ class CannotOpenFileError extends CompilerError {
2424
CannotOpenFileError() { this.hasTag(["cannot_open_file", "cannot_open_file_reason"]) }
2525

2626
string getIncludedFile() {
27-
result = this.getMessage().regexpCapture("cannot open source file '([^']+)'", 1)
27+
result = this.getMessage().regexpCapture("cannot open source file '([^']+)'.*", 1)
2828
}
2929
}

0 commit comments

Comments
 (0)