Skip to content

Commit

Permalink
fix: improve node status message in timeout case
Browse files Browse the repository at this point in the history
  • Loading branch information
mattmattmatt committed Apr 7, 2018
1 parent dac6cf3 commit 04d7fd0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/YeeLightNodeOut.js
Expand Up @@ -87,7 +87,11 @@ export default function YeeLightNodeOut(RED) {
}
node.log('An error occured while syncing or setting a new value');
console.error(e);
onYeelightError(e);
node.status({
fill: 'red',
shape: 'ring',
text: `Command send error: ${e.code}`,
});
});
};

Expand Down

0 comments on commit 04d7fd0

Please sign in to comment.