Send generic 502 if firmware building fails
This commit is contained in:
parent
9d32307f34
commit
5c885db6b1
1 changed files with 1 additions and 1 deletions
|
@ -313,7 +313,7 @@ def getconfig(request, device_id):
|
|||
device = get_object_or_404(Device, id=device_id)
|
||||
|
||||
if not mkfirmware(device, FWDIR):
|
||||
return HttpResponse("Something went wrong generating the firmware image. The server may be busy, please try again later.")
|
||||
return HttpResponse(status=502)
|
||||
|
||||
sigUpdateDevice(device.serial, None, False)
|
||||
device.update = False
|
||||
|
|
Loading…
Reference in a new issue