Commit 30e2ad3
Eric Wheeler
fix: handle unsupported language errors gracefully in read_file tool
Instead of failing with an error when encountering an unsupported language,
now logs a warning and continues with file reading. This provides a better
user experience by still showing the file contents even if syntax
highlighting is not available.
Fixes: #3269
Signed-off-by: Eric Wheeler <[email protected]>1 parent e19bf81 commit 30e2ad3
1 file changed
+15
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
167 | | - | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
168 | 182 | | |
169 | 183 | | |
170 | 184 | | |
| |||
0 commit comments