Improving Error Handling #20
No reviewers
Labels
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
geomind_code/my_hypervisor!20
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "main_error_handling"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
related issues:
#17
for more info:
https://gist.github.com/xmonader/aff3afb23e100b29bb2ffb3455421981#51-excessive-use-of-unwrap-and-expect
https://gist.github.com/xmonader/aff3afb23e100b29bb2ffb3455421981#52-silent-error-suppression
@ -48,0 +47,4 @@eprintln!("[init] Warning: Failed to create {new_path}: {e}");continue;}if let Err(e) = mount(what if the error was the dir already exist? we will skip mount call for that as well, i think we need to try move mount if error too
https://doc.rust-lang.org/beta/std/fs/fn.create_dir_all.html#errors
create_dir_alldoesn't return an error if the directory already exists. it justcreates the directory if it's missing.