load_nasal: boolify result, as the number doesn't mean anything and might
be confusing
This commit is contained in:
parent
56eef9c69f
commit
0fad328217
1 changed files with 2 additions and 2 deletions
|
@ -48,11 +48,11 @@ var load_nasal = func(file, module = nil) {
|
|||
printlog("info", "loading ", file, " into namespace ", module);
|
||||
var code = call(func compile(readfile(file), file), nil, err);
|
||||
if(size(err))
|
||||
return print(file ~ ": " ~ err[0]);
|
||||
return !!print(file ~ ": " ~ err[0]);
|
||||
|
||||
call(bind(code, globals), nil, nil, globals[module], err);
|
||||
debug.printerror(err);
|
||||
return size(err);
|
||||
return !!size(err);
|
||||
}
|
||||
|
||||
# The following two functions are for reading generic XML files into
|
||||
|
|
Loading…
Add table
Reference in a new issue