#Making sure `Result`s are not ignored
1 messages · Page 1 of 1 (latest)
The compiler will emit a warning for this
is there any flag I need to set? because in my case it doesn't
This may be due to the cached compiler output, there’s an open ticket to address this
Can you try gleam clean
And then rebuild
What does that function return?
snag.Result(String)
import snag
import gleam/io
pub fn main() {
case "doesn't matter" {
_ -> {
snag.error("oh god please make it stop!!!!!")
}
}
io.println("weird noises? it's all good man, don't worry about it :)")
}
gleam run
Compiling ignore_result
Compiled in 0.23s
Running ignore_result.main
weird noises? it's all good man, don't worry about it :)
with Error in place of snag.error it emits a warning
Could you open an issue please
will do
Thank you
Bug fixed on main!
Speeeedy

