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>
This commit is contained in:
parent
c555814edb
commit
a6d55b19f3
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue