luci-app-attendedsysupgrade: fixup missing package 1689/head
authorPaul Spooren <spooren@informatik.uni-leipzig.de>
Fri, 16 Mar 2018 17:52:48 +0000 (18:52 +0100)
committerPaul Spooren <spooren@informatik.uni-leipzig.de>
Fri, 16 Mar 2018 17:52:48 +0000 (18:52 +0100)
Signed-off-by: Paul Spooren <spooren@informatik.uni-leipzig.de>
applications/luci-app-attendedsysupgrade/root/www/luci-static/resources/attendedsysupgrade.js

index 604074ad3787edc0102958119fa86cd1382f1a56..60f586ded4c163e1a4223bd89b723e3ac12b2838 100644 (file)
@@ -373,7 +373,7 @@ 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) {
-                       var package_missing = response.getResponseHeader("X-Unknown-Package");
+                       var package_missing = request.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)