FLUID-6124: Diagnostic when registering faulty modelRelay record is unhelpful

Metadata

Source
FLUID-6124
Type
Bug
Priority
Major
Status
Reopened
Resolution
N/A
Assignee
Antranig Basman
Reporter
Antranig Basman
Created
2017-02-06T17:32:51.101-0500
Updated
2021-06-21T11:36:54.161-0400
Versions
N/A
Fixed Versions
N/A
Component
  1. Data Binder

Description

When a modelRelay record refers to a nonexistent function or has misnamed members, the triggered diagnostic is unhelpful. When given the following record:

modelRelay: {
        target: "keyedInUser.label",
        singleTransform: {
            type: "free",
            funcName: "gpii.app.menu.createNameLabel",
            args: ["{app}.keyedInUserToken", "{that}.options.menuLabels.keyedIn", "{that}.options.menuLabels.notKeyedIn"]
        }

the framework produces a bare diagnostic

"TypeError: Cannot read property 'listenerId' of undefined"