Repository navigation
Commit 5d9b159
committed
Debug logging for writeProtected save-failure detection
Add console.warn at two points:
- web-file-transfer.js _fetch: log method+path+status on any non-OK
response, so we can see what the firmware actually sent back.
- script.js saveFileContents catch block: log the relevant fields on
the caught error (name/message/status/method/path/writeProtected),
so we can see whether the heuristic in _fetch tagged it correctly.
Temporary; remove once we've confirmed the field paths fire on real
hardware. Cheap (warn-level, only runs on actual errors).1 parent 702f8b8 commit 5d9b159
2 files changed
Lines changed: 17 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
131 | 140 | | |
132 | 141 | | |
133 | 142 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
594 | 594 | | |
595 | 595 | | |
596 | 596 | | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
597 | 605 | | |
598 | 606 | | |
599 | 607 | | |
| |||
0 commit comments