1
0
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:
Nick O'Leary 2018-05-23 10:59:08 +01:00
parent a4eb8e11c3
commit 26bc142cc2
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9

View File

@ -88,7 +88,7 @@ function getLocalNodeFiles(dir) {
try { try {
files = fs.readdirSync(dir); files = fs.readdirSync(dir);
} catch(err) { } catch(err) {
return result; return {files: [], icons: []};
} }
files.sort(); files.sort();
files.forEach(function(fn) { files.forEach(function(fn) {