diff options
author | Clifford Wolf <clifford@clifford.at> | 2013-03-06 18:30:45 +0100 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2013-03-06 18:30:45 +0100 |
commit | f2f3e2cb1971e7b471955c104d88ff470f3ba5dc (patch) | |
tree | 85442a5063b0704d8c4f8f2a3c76c325003dfedd /kernel/driver.cc | |
parent | b380af9d6d49ad4a7a944eb02abd3fa222f383a3 (diff) | |
download | yosys-f2f3e2cb1971e7b471955c104d88ff470f3ba5dc.tar.gz yosys-f2f3e2cb1971e7b471955c104d88ff470f3ba5dc.tar.bz2 yosys-f2f3e2cb1971e7b471955c104d88ff470f3ba5dc.zip |
Improved error message on failed module load
Diffstat (limited to 'kernel/driver.cc')
-rw-r--r-- | kernel/driver.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/driver.cc b/kernel/driver.cc index 8ba0283f4..0da5f68cb 100644 --- a/kernel/driver.cc +++ b/kernel/driver.cc @@ -238,7 +238,7 @@ int main(int argc, char **argv) case 'm': loaded_modules.push_back(dlopen(optarg, RTLD_LAZY|RTLD_GLOBAL)); if (loaded_modules.back() == NULL) { - fprintf(stderr, "Can't load module `%s'!\n", optarg); + fprintf(stderr, "Can't load module `%s': %s\n", optarg, dlerror()); exit(1); } break; |