Skip to content

Modem swallow exceptions #19

@Sgregory42

Description

@Sgregory42

Modem swallow exceptions and doesn't show them in the console.

Given this function with an assert that should fail:

pub fn init() -> #(Model, Effect(Msg)) {
  echo "in init"
  let assert Ok(_) = function_that_might_fail()
  echo "after assert"
  [...]

when I click on a link that load this, I don't see any error in the console and it doesn't show the "after assert".

From my debugging, the assert exception get caught modem.ffi.js#57 but doesn't do anything with it.

There is probably the same issue with the back/forward but I haven't tried.

Removing the try/catch in modem.ffi.js#57 behave as expected (show as an uncaught exception) although I don't know if it is the right behavior.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions