From 8a7bb1be9f07dbec64830d9e570fd663263ad6c2 Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Mon, 15 May 2017 13:54:05 +0100 Subject: [PATCH] Log error when non-msg-object is returned from a Function --- nodes/core/core/80-function.js | 23 ++++++----- nodes/core/locales/en-US/messages.json | 3 +- test/nodes/core/core/80-function_spec.js | 51 +++++++++++++++++++++++- 3 files changed, 65 insertions(+), 12 deletions(-) diff --git a/nodes/core/core/80-function.js b/nodes/core/core/80-function.js index 2e775bd69..3a4f81d55 100644 --- a/nodes/core/core/80-function.js +++ b/nodes/core/core/80-function.js @@ -28,18 +28,23 @@ module.exports = function(RED) { var msgCount = 0; for (var m=0;m