Skip to content

Commit 129ac44

Browse files
author
Dave Conway-Jones
committed
try not to crash on weird out of order error reported.
1 parent 7bcfaeb commit 129ac44

File tree

2 files changed

+17
-3
lines changed

2 files changed

+17
-3
lines changed

dist/dashboard.appcache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
CACHE MANIFEST
2-
# Time: Mon Dec 16 2019 23:20:59 GMT+0000 (Greenwich Mean Time)
2+
# Time: Thu Dec 19 2019 22:41:21 GMT+0000 (Greenwich Mean Time)
33

44
CACHE:
55
i18n.js

nodes/ui_base.js

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,14 +90,28 @@ module.exports = function(RED) {
9090
RED.httpAdmin.get('/ui_base/js/*', function(req, res) {
9191
var filename = path.join(__dirname , '../dist/js', req.params[0]);
9292
res.sendFile(filename, function (err) {
93-
if (err) { node.warn(filename + " not found. Maybe running in dev mode."); }
93+
if (err) {
94+
if (node) {
95+
node.warn(filename + " not found. Maybe running in dev mode.");
96+
}
97+
else {
98+
console.log("ui_base - error:",err);
99+
}
100+
}
94101
});
95102
});
96103

97104
RED.httpAdmin.get('/ui_base/css/*', function(req, res) {
98105
var filename = path.join(__dirname , '../dist/css', req.params[0]);
99106
res.sendFile(filename, function (err) {
100-
if (err) { node.warn(filename + " not found. Maybe running in dev mode."); }
107+
if (err) {
108+
if (node) {
109+
node.warn(filename + " not found. Maybe running in dev mode.");
110+
}
111+
else {
112+
console.log("ui_base - error:",err);
113+
}
114+
}
101115
});
102116
});
103117
};

0 commit comments

Comments
 (0)