LaxarJS / laxar-patterns

Utilities to implement standard event patterns in LaxarJS widgets
MIT License
5 stars 2 forks source link

improve error messages for missing feature configuration #94

Closed alex3683 closed 7 years ago

alex3683 commented 7 years ago

For example in resources.replacePublisherForFeature( context, 'myFeature' ), if myFeature is not configured or if there is a typo in 'myFeature', an assertion fails without further information on what went wrong. Instead there should be a clear error message stating the problem with the missing feature (or possible typo).

x1B commented 7 years ago

@alex3683 wanna have a look at commit 6fb1d1f -- I took the liberty to use axContext.log so that the widget ID/name is displayed as well.

alex3683 commented 7 years ago

Good idea. It will for sure be helpful to have that information too.

x1B commented 7 years ago

@alex3683 alright. thanks, I'll merge

x1B commented 7 years ago

Implemented on master (v2.0.0).