system: sysupgrade: fix possibly misleading error
authorPetr Štetiar <ynezz@true.cz>
Fri, 3 Jan 2020 00:26:50 +0000 (01:26 +0100)
committerPetr Štetiar <ynezz@true.cz>
Sun, 5 Jan 2020 10:47:03 +0000 (11:47 +0100)
commit9814807bd71cba074a23707c32d163b560b551cf
tree9611a8af322aaac2d45af8666776ea87a71c23f1
parentc7a2db3c1eb66080a1520a5748493cc0b55fac93
system: sysupgrade: fix possibly misleading error

Fix possibly misleading error "Firmware image is broken and cannot be
installed" which could be produced by JSON without expected validation
variables, where "Validation script provided invalid input" error message
makes more sense.

Cc: Rafał Miłecki <rafal@milecki.pl>
Tested-by: Kuan-Yi Li <kyli@abysm.org>
Signed-off-by: Petr Štetiar <ynezz@true.cz>
system.c