From 53f59d35ccd6f026649d27fb6c872115ee3f0823 Mon Sep 17 00:00:00 2001 From: Paul Spooren Date: Sun, 22 Aug 2021 00:07:20 -1000 Subject: [PATCH] luci-app-attendedsysupgrade: use detail not message The new API unifies all human readable responses in the `detail` field to follow the newly used framework. Signed-off-by: Paul Spooren (cherry picked from commit 2a29911121bf72d5d316b2eeae7f184b8ce14482) --- .../luci-static/resources/view/attendedsysupgrade/overview.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js b/applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js index e49252ba3a..fc179212b1 100644 --- a/applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js +++ b/applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js @@ -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)), -- 2.30.2