From a6d55b19f3625fda73f3fd52cb471f1da49f73e7 Mon Sep 17 00:00:00 2001 From: Paul Spooren Date: Tue, 6 Mar 2018 19:23:28 +0100 Subject: 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 --- .../root/www/luci-static/resources/attendedsysupgrade.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'applications/luci-app-attendedsysupgrade/root/www/luci-static/resources') 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) -- cgit v1.2.3