From fd4fdb31b5154b7e96e42d9af0c9d4748f42b71b Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Mon, 15 Jan 2018 23:20:20 +0000 Subject: [PATCH] Better error reporting when module provides duplicate type --- red/runtime/index.js | 6 ++- red/runtime/locales/en-US/runtime.json | 1 + red/runtime/nodes/registry/loader.js | 6 +-- red/runtime/nodes/registry/registry.js | 18 +++++++- .../runtime/nodes/registry/registry_spec.js | 46 +++++++++++++++++-- 5 files changed, 68 insertions(+), 9 deletions(-) diff --git a/red/runtime/index.js b/red/runtime/index.js index 47ff205f7..9cf113207 100644 --- a/red/runtime/index.js +++ b/red/runtime/index.js @@ -117,7 +117,11 @@ function start() { if (nodeErrors.length > 0) { log.warn("------------------------------------------------------"); for (i=0;i]*)data-template-name=['"]([^'"]*)['"]/gi; + var regExp = /