We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e935fe commit e9a7165Copy full SHA for e9a7165
arduino-connection-manager.js
@@ -10,8 +10,8 @@ const accessTokenAudience = process.env.NODE_RED_ACCESS_TOKEN_AUDIENCE || 'https
10
var ids=[];
11
12
async function connect(connectionConfig) {
13
- if (!connectionConfig.credentials) {
14
- throw new Error("Cannot find credentials.");
+ if (!connectionConfig || !connectionConfig.credentials) {
+ throw new Error("Cannot find cooonection config or credentials.");
15
}
16
var date = new Date();
17
var timestamp = date.getTime();
0 commit comments