diff options
author | Erik Troan <ewt@redhat.com> | 1999-07-21 02:41:02 +0000 |
---|---|---|
committer | Erik Troan <ewt@redhat.com> | 1999-07-21 02:41:02 +0000 |
commit | a9575cbf2682e4793e558427b5915bceda6480c7 (patch) | |
tree | f901a954bfe0d41af2c31a8bddd3a1f70c64e583 /loader | |
parent | a300929d80383ce83c24bbdef34736eadc3dad98 (diff) | |
download | anaconda-a9575cbf2682e4793e558427b5915bceda6480c7.tar.gz anaconda-a9575cbf2682e4793e558427b5915bceda6480c7.tar.xz anaconda-a9575cbf2682e4793e558427b5915bceda6480c7.zip |
display a better error message when module-info is bad
Diffstat (limited to 'loader')
-rw-r--r-- | loader/loader.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/loader/loader.c b/loader/loader.c index 345027770..c8f5947dc 100644 --- a/loader/loader.c +++ b/loader/loader.c @@ -375,9 +375,9 @@ int main(int argc, char ** argv) { exit(1); } - if (isysReadModuleInfo(testing ? "/boot/module-info" : - "/modules/module-info")) { - fprintf(stderr, "failed to read /boot/module-info"); + arg = testing ? "/boot/module-info" : "/modules/module-info"; + if (isysReadModuleInfo(arg)) { + fprintf(stderr, "failed to read %s\n", arg); sleep(5); exit(1); } |