Separate application logic and improve error handling #3

Merged
glyph merged 3 commits from eprintln into main 2021-11-23 18:40:37 +00:00
Owner
  • Split into src/lib.rs and src/main.rs
  • Return Result<(), &'static str> from src/lib.rs
  • Replace expect with &str error messages
  • Catch application errors in src/main.rs
    • Print to stderr and exit with code 1
  • Bump version
- Split into `src/lib.rs` and `src/main.rs` - Return `Result<(), &'static str>` from `src/lib.rs` - Replace `expect` with `&str` error messages - Catch application errors in `src/main.rs` - Print to `stderr` and exit with code `1` - Bump version
glyph added 2 commits 2021-11-23 18:38:41 +00:00
glyph added 1 commit 2021-11-23 18:40:09 +00:00
glyph merged commit 9b6c43a951 into main 2021-11-23 18:40:37 +00:00
glyph deleted branch eprintln 2021-11-23 18:40:37 +00:00
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: glyph/website#3
No description provided.