From: Clifford Wolf Date: Wed, 6 Mar 2013 17:30:45 +0000 (+0100) Subject: Improved error message on failed module load X-Git-Tag: yosys-0.2.0~738 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f2f3e2cb1971e7b471955c104d88ff470f3ba5dc;p=yosys.git Improved error message on failed module load --- 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;