luci-app-attendedsysupgrade: use detail not message
authorPaul Spooren <mail@aparcar.org>
Sun, 22 Aug 2021 10:07:20 +0000 (00:07 -1000)
committerPaul Spooren <mail@aparcar.org>
Thu, 26 Aug 2021 07:52:00 +0000 (21:52 -1000)
The new API unifies all human readable responses in the `detail` field
to follow the newly used framework.

Signed-off-by: Paul Spooren <mail@aparcar.org>
(cherry picked from commit 2a29911121bf72d5d316b2eeae7f184b8ce14482)

applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js

index e49252ba3a096414474fbd122f781fa6679582b6..fc179212b1c470bcac97b9a0311837ee52bcd518 100644 (file)
@@ -185,7 +185,7 @@ function request_sysupgrade(server_url, data) {
                        case 500: // build failed
                                res = response.json()
                                var body = [
-                                       E('p', {}, _(res.message)),
+                                       E('p', {}, res.detail),
                                        E('p', {}, _("Please report the error message and request")),
                                        E('b', {}, _("Request to server:")),
                                        E('pre', {}, JSON.stringify(data, null, 4)),