From f2f3e2cb1971e7b471955c104d88ff470f3ba5dc Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Wed, 6 Mar 2013 18:30:45 +0100 Subject: [PATCH] Improved error message on failed module load --- kernel/driver.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.30.2