1
0
Fork 0

Nasal modules: don’t give up on an error.

Fix from Henning Stahlke
This commit is contained in:
James Turner 2020-08-12 11:04:10 +01:00
parent a4e37063ed
commit 0431a2ec6f

View file

@ -340,7 +340,7 @@ var load = func(name, ns="") {
_modules_available = {}; _modules_available = {};
foreach (var name; io.subdirectories(MODULES_DIR)) { foreach (var name; io.subdirectories(MODULES_DIR)) {
if (!io.is_regular_file(MODULES_DIR~"/"~name~"/"~MODULES_DEFAULT_FILENAME)) if (!io.is_regular_file(MODULES_DIR~"/"~name~"/"~MODULES_DEFAULT_FILENAME))
break; continue;
_modules_available[name] = 1; _modules_available[name] = 1;
MODULES_NODE.getNode(name~"/available",1).setBoolValue(1); MODULES_NODE.getNode(name~"/available",1).setBoolValue(1);
} }