-
Notifications
You must be signed in to change notification settings - Fork 24
Open
Description
Please fill out the below template as best you can.
Description of Issue
Add meaningful error when Provider is not Initialized and a event is triggered or listener is added/called. For example, if Prover.trigger is called when the Provider has not been initialized, it attempts to access this.application which is created upon Provider.init(). If the Provider has not been initialized, it throws the error
Error: Cannot read property 'trigger' of undefined
at Provider.trigger
This is error does not make it immediately obvious that the issue is related to the Provider initialization.
Steps to Reproduce the Issue
- Setup an application which called
Provider.trigger()without initializing the provider - See error in the console
Expected Outcomes
- Throw Error message saying something like "Cannot handle/perform because the Provider has not been initialized"
Metadata
Metadata
Assignees
Labels
No labels