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
Platform
Linux thinkpad 6.3.1-arch1-1 #1 SMP PREEMPT_DYNAMIC Mon, 01 May 2023 17:42:39 +0000 x86_64 GNU/Linux
Description
I want to create a tls server with the code down below. config is a struct that stores the configuration, and it contains strings for client auth, cert and key paths. However, if these strings are invalid paths (or maybe just don't contain the "expected" content, I'm not sure), then warp::serve panics.
Version
Platform
Linux thinkpad 6.3.1-arch1-1 #1 SMP PREEMPT_DYNAMIC Mon, 01 May 2023 17:42:39 +0000 x86_64 GNU/Linux
Description
I want to create a tls server with the code down below.
config
is a struct that stores the configuration, and it contains strings for client auth, cert and key paths. However, if these strings are invalid paths (or maybe just don't contain the "expected" content, I'm not sure), thenwarp::serve
panics.I tried this code:
I expected to see this happen:
Some proper way of error handling. Can I work with a result somehow instead of it panicking?
Instead, this happened:
The text was updated successfully, but these errors were encountered: