Seed: Useless 'unreachable executed' panic when no element with ID 'app' exists

Created on 3 Mar 2019  路  3Comments  路  Source: seed-rs/seed

And the message in the Option::except call doesn't show up.

https://github.com/David-OConnor/seed/blob/7d5150695f790a41aef5d158f7673c9a3e3aa797/src/vdom.rs#L166-L168

bug

All 3 comments

I don't know why it's doing that, but I've worked around it by splitting into a match arm, then calling a console::error with a descriptive message, and panicking. (The panic message doesn't show; instead the 'unreachable executed' you found does, after the console::error.

@David-OConnor Take a look at this repo for explanation

Will be in next release

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sbditto85 picture sbditto85  路  3Comments

bheisler picture bheisler  路  4Comments

Type1J picture Type1J  路  6Comments

L0g4n picture L0g4n  路  4Comments

JWorthe picture JWorthe  路  3Comments