]> rtime.felk.cvut.cz Git - novaboot.git/commit
Make <<>> fail if it cannot open a file
authorMichal Sojka <michal.sojka@cvut.cz>
Fri, 22 Oct 2021 12:47:54 +0000 (14:47 +0200)
committerMichal Sojka <michal.sojka@cvut.cz>
Fri, 22 Oct 2021 12:47:54 +0000 (14:47 +0200)
commit28fb0a24ff20b45b3f2aeb7607792c3668ceb349
tree4ec83525f22988d572b3dea6097590a7128a49bd
parent0a26fc0d0c474edbbc900261d85d9c60d0a8294d
Make <<>> fail if it cannot open a file

By default, only a warning is printed and the script continues.

Example of this situation:

    % novaboot non-existent --gen-only
    novaboot: Read /home/wsh/.config/novaboot
    novaboot: Effective options: non-existent --gen-only
    Can't open non-existent: No such file or directory at /home/wsh/src/novaboot/novaboot line 362.

We do not add a test for this, because we make all warnings fatal when
running tests.
novaboot