Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid .unwrap() on IO and config errors #23

Merged
merged 3 commits into from
Aug 25, 2023

Conversation

progval
Copy link
Contributor

@progval progval commented Aug 25, 2023

Before:

Error: Os { code: 2, kind: NotFound, message: "No such file or directory" }

After:

Error: Failed to read TLS config

Caused by:
    0: Could not open certificate configs/server1.pem
    1: No such file or directory (os error 2)

Before:

```
Error: Os { code: 2, kind: NotFound, message: "No such file or directory" }
```

After:

```
Error: Failed to read TLS config

Caused by:
    No such file or directory (os error 2)
```
@progval progval changed the title Avoid .unwrap() on IO and user errors Avoid .unwrap() on IO and config errors Aug 25, 2023
@spb spb merged commit e569418 into Libera-Chat:master Aug 25, 2023
2 checks passed
@progval progval deleted the fewer-unwraps branch August 25, 2023 17:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants