From b1cf3ef6f69de13fd3ad099a27109242db9e6fb1 Mon Sep 17 00:00:00 2001 From: gator Date: Mon, 7 Sep 2026 14:54:35 +0000 Subject: [PATCH] Say why the script failed instead of just that it did The reason was already being stored on the project, but the page showed a bare "could not finish" and a Start again button. A dead link is the most common cause and it is the reader's to fix, so it needs saying out loud. --- script.html | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/script.html b/script.html index 7bddb0a..836778d 100644 --- a/script.html +++ b/script.html @@ -154,7 +154,12 @@ function render(r) { if (poll) { clearInterval(poll); poll = null; } if (p.status === "script_failed") { - out.innerHTML = '

The writer could not finish this one.

' + // The reason was always stored; it just was not being shown. A dead or + // paywalled link is the usual cause, and only the reader can fix it. + var why = (s && s.error) ? s.error : ""; + out.innerHTML = '

The writer could not finish this one.

' + + (why ? '
' + esc(why) + '
' + : '

No reason was recorded.

') + 'Start again
'; return; }