Commit 3fcc9f5
fix(trail): warn on failed body fetch during update
Address PR review: resolveTrailUpdateBody swallowed detail-fetch errors,
so a failed fetch left the form's Body baseline blank and a subsequent
edit could overwrite a description the user never saw. Return the fetch
error and warn on stderr (mirroring runTrailShow) so the blank baseline
is never silent.
Also drop the redundant re-trim (fetchTrailDescription already trims) and
refresh the helper/inline comments, which still described an unconditional
"full-body wipe" that the change-detection logic already prevents.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Entire-Checkpoint: 01KY4W1R808FYPN32C0VKBGJCH1 parent 2e41e41 commit 3fcc9f5
2 files changed
Lines changed: 51 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1101 | 1101 | | |
1102 | 1102 | | |
1103 | 1103 | | |
1104 | | - | |
1105 | | - | |
1106 | | - | |
1107 | | - | |
1108 | | - | |
| 1104 | + | |
| 1105 | + | |
| 1106 | + | |
| 1107 | + | |
| 1108 | + | |
| 1109 | + | |
| 1110 | + | |
1109 | 1111 | | |
1110 | 1112 | | |
1111 | | - | |
| 1113 | + | |
| 1114 | + | |
| 1115 | + | |
| 1116 | + | |
| 1117 | + | |
| 1118 | + | |
| 1119 | + | |
1112 | 1120 | | |
1113 | 1121 | | |
1114 | 1122 | | |
1115 | | - | |
| 1123 | + | |
1116 | 1124 | | |
1117 | 1125 | | |
1118 | 1126 | | |
| |||
1238 | 1246 | | |
1239 | 1247 | | |
1240 | 1248 | | |
1241 | | - | |
1242 | | - | |
1243 | | - | |
| 1249 | + | |
| 1250 | + | |
| 1251 | + | |
| 1252 | + | |
| 1253 | + | |
| 1254 | + | |
| 1255 | + | |
| 1256 | + | |
1244 | 1257 | | |
1245 | 1258 | | |
1246 | 1259 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
604 | 604 | | |
605 | 605 | | |
606 | 606 | | |
607 | | - | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
608 | 611 | | |
609 | 612 | | |
610 | 613 | | |
| |||
623 | 626 | | |
624 | 627 | | |
625 | 628 | | |
626 | | - | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
627 | 633 | | |
628 | 634 | | |
629 | 635 | | |
630 | 636 | | |
631 | 637 | | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
632 | 658 | | |
633 | 659 | | |
634 | 660 | | |
| |||
0 commit comments