From: Paul Spooren Date: Sun, 22 Aug 2021 10:07:20 +0000 (-1000) Subject: luci-app-attendedsysupgrade: use detail not message X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=2a29911121bf72d5d316b2eeae7f184b8ce14482;p=openwrt-luci.git 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 --- 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)),