Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

separate exceptions in assert methods #4

Open
tbosch opened this issue Apr 16, 2014 · 0 comments
Open

separate exceptions in assert methods #4

tbosch opened this issue Apr 16, 2014 · 0 comments

Comments

@tbosch
Copy link
Contributor

tbosch commented Apr 16, 2014

E.g. the following code would report a type error:

  static assert(obj) {
    assert(obj).is(assert.structureOf({
      createRootView: Function
    }));
  }

The real problem was the typo: It needs to be assert.structure instead of assert.structureOf. However, the error that assert generated was misleading.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant