diff options
author | Paul Spooren <spooren@informatik.uni-leipzig.de> | 2018-03-06 19:23:28 +0100 |
---|---|---|
committer | Paul Spooren <spooren@informatik.uni-leipzig.de> | 2018-03-06 19:25:08 +0100 |
commit | a6d55b19f3625fda73f3fd52cb471f1da49f73e7 (patch) | |
tree | 3dc703f1d5d10a0dd9cc8041b3c2e8c2382c0a52 /applications/luci-app-attendedsysupgrade/root/www/luci-static | |
parent | c555814edbc934f781238ba6844e2f7e1afdc2e5 (diff) |
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 <spooren@informatik.uni-leipzig.de>
Diffstat (limited to 'applications/luci-app-attendedsysupgrade/root/www/luci-static')
-rw-r--r-- | applications/luci-app-attendedsysupgrade/root/www/luci-static/resources/attendedsysupgrade.js | 4 |
1 files changed, 2 insertions, 2 deletions
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 c2fe81d58a..9b67faf515 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: <b>" + package_missing + "</b>") } else if (request.status === 500) { request_json = JSON.parse(request_text) |