Commit b1515ea
committed
(maint) Do not error in validation exception handler
Previosuly if an unexpected type of error came through the document validator
it would itself raise a new exception and crash the Language Server. This was
caused by the lack of a :line or :pos method on the exception or the inner
exception. This commit changes the detection logic to ignore any exception that
does not contain line and position information in the exception object. These
can be ignored as they are not Puppet manifest errors but a symptom of something
else.1 parent 8d0ef40 commit b1515ea
1 file changed
+10
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
91 | | - | |
92 | | - | |
93 | | - | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
94 | 96 | | |
95 | 97 | | |
96 | 98 | | |
97 | | - | |
| 99 | + | |
98 | 100 | | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
103 | 105 | | |
104 | 106 | | |
105 | 107 | | |
| |||
0 commit comments