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>
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)