Commit 8dd7e5a
committed
Fix RPC reads missing error cause for structured file system errors
Add workspaceFileReadCompatibilityDetail() to properly map each
WorkspaceFileSystemError tag to a user-visible description at the
projectsReadFile RPC boundary.
The previous code accessed cause.cause on all non-outside-root errors,
but WorkspaceFilePathEscapeError, WorkspacePathNotFileError, and
WorkspaceBinaryFileError have no cause property, producing 'undefined'
in client error messages.1 parent a7c5cce commit 8dd7e5a
1 file changed
Lines changed: 18 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
173 | 190 | | |
174 | 191 | | |
175 | 192 | | |
| |||
1288 | 1305 | | |
1289 | 1306 | | |
1290 | 1307 | | |
1291 | | - | |
| 1308 | + | |
1292 | 1309 | | |
1293 | 1310 | | |
1294 | 1311 | | |
| |||
0 commit comments