mirror of
https://github.com/keymanapp/keyman.git
synced 2026-09-08 16:47:46 +00:00
fix(developer): lm compiler handle missing line no in errors
Fixes #8443. Will cherry-pick to stable-16.0. The regex for matching error messages has an optional section for the file/line detail (line 54): ```regex ^(?:(.+) \((\d+)\): )?<snip> ``` The code that parses the results did not account for this being optional, which would cause a crash if the error message did not include this information.
This commit is contained in:
parent
7af12c27f9
commit
9db4cf2379
1 changed files with 1 additions and 1 deletions
|
|
@ -61,7 +61,7 @@ begin
|
|||
if m.Success then
|
||||
begin
|
||||
msgFilename := m.Groups[1].Value;
|
||||
msgLine := StrToInt(m.Groups[2].Value);
|
||||
msgLine := StrToIntDef(m.Groups[2].Value, 0);
|
||||
msgType := m.Groups[3].Value;
|
||||
msgCode := StrToInt('$'+m.Groups[4].Value);
|
||||
msgText := m.Groups[5].Value;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue