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:19:55 +0000 (16:19 +0100)
commitbfcef129815df47534f267ebceb55c8704db2ed4
tree701d1d159faf2597c54ade6985da23d159c3bf7d
parent13a61e10f442b06862c9c57c2d6cd5e5af9a6256
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]>
(cherry picked from commit cf868f439855534f62f2cfbd2732811d53a26c25)
applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js