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

Errors are getting swallowed #20

Closed
liam-swinney opened this issue Jan 22, 2016 · 1 comment
Closed

Errors are getting swallowed #20

liam-swinney opened this issue Jan 22, 2016 · 1 comment

Comments

@liam-swinney
Copy link
Member

Errors are appeared to be getting swallowed when using orchestra.

I've forced an error where the 'el' for a Mn view is not within the DOM, once I compile and run the code in the browser no error is thrown, making it appear no error has happened.

It is only when I step through my code within the Inspector from the render function where it will go into the catch of this function:

function lib$es6$promise$$internal$$tryCatch(callback, detail) {
    try {
       return callback(detail);
    } catch(e) {
       lib$es6$promise$$internal$$TRY_CATCH_ERROR.error = e;
       return lib$es6$promise$$internal$$TRY_CATCH_ERROR;
    }
}

e consoled out is then the actual message:

message: "An "el" .js-tabled-data-content must exist in DOM"
name: "Error"

This appears to be an issue with es6-promise plugin
stefanpenner/es6-promise#70

@liam-swinney
Copy link
Member Author

This fails when testing this with the plugins directly and no orchestra, it appears to be a babel/es6 promise issue rather than orchestra

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