From: Paul Spooren Date: Tue, 6 Mar 2018 18:23:28 +0000 (+0100) Subject: luci-app-attendedsysupgrade: show unknown package X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=a6d55b19f3625fda73f3fd52cb471f1da49f73e7;p=oweals%2Fluci.git luci-app-attendedsysupgrade: show unknown package Reads the header X-Unknown-Package offered by the sysupgrade server and shows it in the error message. Signed-off-by: Paul Spooren --- diff --git a/applications/luci-app-attendedsysupgrade/root/www/luci-static/resources/attendedsysupgrade.js b/applications/luci-app-attendedsysupgrade/root/www/luci-static/resources/attendedsysupgrade.js index c2fe81d58..9b67faf51 100644 --- a/applications/luci-app-attendedsysupgrade/root/www/luci-static/resources/attendedsysupgrade.js +++ b/applications/luci-app-attendedsysupgrade/root/www/luci-static/resources/attendedsysupgrade.js @@ -373,8 +373,8 @@ function server_request(request_dict, path, callback) { error_box("No firmware created due to image size. Try again with less packages selected.") } else if (request.status === 422) { - error_box("Unknown package in request") - + var package_missing = response.getResponseHeader("X-Unknown-Package"); + error_box("Unknown package in request: " + package_missing + "") } else if (request.status === 500) { request_json = JSON.parse(request_text)