#1233 Issue closed
: ReaR does not sufficiently error out if mandatory stuff is missing¶
Labels: enhancement
, won't fix / can't fix / obsolete
,
minor bug
jsmeix opened issue at 2017-03-10 08:58:¶
At least sometimes "rear mkbackup/mkrescue"
does not sufficiently error out if mandatory stuff is missing.
I think when mandatory stuff is missing (e.g. parted not installed)
ReaR should error out early with a meaningful error message
than to blindly proceed until it errors out at an arbitrary later
place
with an unexpected error message, cf.
https://github.com/rear/rear/issues/1210#issuecomment-285003858
and
https://github.com/rear/rear/issues/755#issuecomment-171603580
In general regarding "error out early" see also
"Try to care about possible errors" in
https://github.com/rear/rear/wiki/Coding-Style
In general see also
https://github.com/rear/rear/wiki/Developers-Guide
jsmeix commented at 2017-04-21 14:45:¶
FYI:
REQUIRED_PROGS works as expected.
I have in local.conf
REQUIRED_PROGS=( "${REQUIRED_PROGS[@]}" qqq )
and "rear mkrescue" errors out:
# usr/sbin/rear -d -D mkrescue && echo OK || echo FAIL Relax-and-Recover 2.00 / Git Using log file: /root/rear/var/log/rear/rear-e205.log Using backup archive '/tmp/rear.znlcAWce9BcZqpi/outputfs/e205/backup.tar.gz' ERROR: Cannot find required programs: qqq Aborting due to an error, check /root/rear/var/log/rear/rear-e205.log for details Terminated FAIL
jsmeix commented at 2017-04-27 14:36:¶
https://github.com/rear/rear/pull/1334 is related to this issue
[Export of Github issue for rear/rear.]