aboutsummaryrefslogtreecommitdiff
path: root/src/libstore
diff options
context:
space:
mode:
authorJade Lovelace <lix@jade.fyi>2024-03-11 00:50:57 -0700
committerJade Lovelace <lix@jade.fyi>2024-03-15 12:31:16 -0700
commit0d85875c3a4284dabad79069758a9056898c42dc (patch)
tree482ab97522a63b1cadb34cffe8e9195725283d1e /src/libstore
parent7d361f1a828ee800e2e5353169c31134cbd08f0d (diff)
Allow dlopen of plugins to fail
It happens with some frequency that plugins that might be unimportant to the evaluation at hand mismatch with the nix version, leading to spurious load failures. Let's make these non fatal. Change-Id: Iba10e951d171725ccf1a121bcd9be1e1d6ad69eb
Diffstat (limited to 'src/libstore')
-rw-r--r--src/libstore/globals.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/globals.cc b/src/libstore/globals.cc
index 0aecd2b6a..2929bd6e6 100644
--- a/src/libstore/globals.cc
+++ b/src/libstore/globals.cc
@@ -342,7 +342,7 @@ void initPlugins()
void *handle =
dlopen(file.c_str(), RTLD_LAZY | RTLD_LOCAL);
if (!handle)
- throw Error("could not dynamically open plugin file '%s': %s", file, dlerror());
+ warn("could not dynamically open plugin file '%s': %s", file, dlerror());
}
}