mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Handle loading empty nodesDir
This commit is contained in:
parent
a4eb8e11c3
commit
26bc142cc2
@ -88,7 +88,7 @@ function getLocalNodeFiles(dir) {
|
||||
try {
|
||||
files = fs.readdirSync(dir);
|
||||
} catch(err) {
|
||||
return result;
|
||||
return {files: [], icons: []};
|
||||
}
|
||||
files.sort();
|
||||
files.forEach(function(fn) {
|
||||
|
Loading…
Reference in New Issue
Block a user