In the example it promises this:
|
// In a later example we will see how to return specific errors to the user |
But there's no other example of this in the other examples.
It should show something like this:
let result = {
// do something
}
case result {
Ok(_) -> wisp.ok()
Error(err) -> case err {
Wibble -> wisp.internal_server_error()
Wobble -> wisp.unprocessable_content()
}
}
In the example it promises this:
wisp/examples/src/using_a_database/app/web/people.gleam
Line 60 in cd78865
But there's no other example of this in the other examples.
It should show something like this: