You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
it would be better if you provide some examples of error handling, because I've some questions about this
in my case I'm trying to create a lua function to send a http request to custom url, but it may return an error message but your crate cannot add Err to the lua_context.create_function function
localresp=send_req("https://www.knas.me/")
print(resp.url)
ifpcall(send_req("hthtpl")) thenprint("IT WORKS")
elseprint("NOPE")
end
results
$ cargo r
https://www.knas.me/
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: reqwest::Error { kind: Builder, source: RelativeUrlWithoutBase }', src/core/mod.rs:20:38
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
The text was updated successfully, but these errors were encountered:
it would be better if you provide some examples of error handling, because I've some questions about this
in my case I'm trying to create a lua function to send a http request to custom url, but it may return an error message but your crate cannot add
Err
to thelua_context.create_function
functionresults
The text was updated successfully, but these errors were encountered: