diff --git a/src-electron/generator/matter/darwin/Framework/CHIP/templates/helper.js b/src-electron/generator/matter/darwin/Framework/CHIP/templates/helper.js index 162e3be7f2..c2b557c9d6 100644 --- a/src-electron/generator/matter/darwin/Framework/CHIP/templates/helper.js +++ b/src-electron/generator/matter/darwin/Framework/CHIP/templates/helper.js @@ -110,14 +110,15 @@ function asObjectiveCNumberType(label, type, asLowerCased) { return 'Float'; case 'double': return 'Double'; - default: - error = + default: { + let error = label + ': Unhandled underlying type ' + zclType + ' for original type ' + type; throw error; + } } }) .then((typeName) =>