-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Description
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels