firmware-utils: mkfwimage: provide human readable error
authorPetr Štetiar <ynezz@true.cz>
Fri, 19 Jul 2019 13:52:46 +0000 (15:52 +0200)
committerPetr Štetiar <ynezz@true.cz>
Fri, 19 Jul 2019 14:16:15 +0000 (16:16 +0200)
commit93728908c4854f1138e81878c519221c309020bd
treeccd1cd4fdfefe1c0a01810efe5f7602ec3a1a78b
parent2d8ad31974f25e2420f611f64768ab808d375daa
firmware-utils: mkfwimage: provide human readable error

While looking at the ath25 build breakage of 19.07 images today I've
encountered following error:

 mkfwimage -B XS5 -v [...] ath25-ubnt5-squashfs-sysupgrade.bin.new
 ERROR: Failed creating firmware layout description - error code: -2

Which is barely human readable and needs poking into the source code, so
this patch makes the error more verbose and usable by mere mortals.

Signed-off-by: Petr Štetiar <ynezz@true.cz>
src/mkfwimage.c