luci-app-attendedsysupgrade: do major cleanup of error handler
authorEric Fahlgren <[email protected]>
Wed, 29 Oct 2025 00:39:54 +0000 (17:39 -0700)
committerPaul Donald <[email protected]>
Wed, 29 Oct 2025 15:18:59 +0000 (16:18 +0100)
commitcf868f439855534f62f2cfbd2732811d53a26c25
tree6db7d1ad55fd39de59a1decbd79cd01286aa03ba
parent74d2aad3da3cfb1bc3af1464c727868dde89b6d6
luci-app-attendedsysupgrade: do major cleanup of error handler

Extract and isolate the forum-specific constants and formats to
a location that is easily modified.  Factor out a lot of common
code and simply make everything much cleaner and more readable.

Output to the "Request Data" block was augmented to contain the
system board info, and was reordered to put more important data
earlier in the output.

Also fix a potential bug in construction of the error html, where
the final step was coercing everything to a string prematurely.

Signed-off-by: Eric Fahlgren <[email protected]>
applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js