mirror of https://github.com/node-red/node-red.git
Handle loading empty nodesDir
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