1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-15 06:52:43 +01:00

initPlugins: Fix dlopen error message.

(cherry picked from commit dc0a542c9f)
This commit is contained in:
Shea Levy 2018-04-11 21:02:50 -04:00 committed by Eelco Dolstra
parent b1ade66815
commit b61ea7b24e
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE

View file

@ -159,7 +159,7 @@ void initPlugins()
void *handle = void *handle =
dlopen(file.c_str(), RTLD_LAZY | RTLD_LOCAL); dlopen(file.c_str(), RTLD_LAZY | RTLD_LOCAL);
if (!handle) if (!handle)
throw Error("could not dynamically open plugin file '%s%': %s%", file, dlerror()); throw Error("could not dynamically open plugin file '%s': %s", file, dlerror());
} }
} }
/* We handle settings registrations here, since plugins can add settings */ /* We handle settings registrations here, since plugins can add settings */