mirror of
https://github.com/zaphar/ucg.git
synced 2025-07-21 18:10:42 -04:00
Dont fail if we cant create the .ucg directory
This commit is contained in:
parent
15819cdc16
commit
f35f1be851
@ -487,7 +487,9 @@ fn main() {
|
||||
p.push(".ucg");
|
||||
// Attempt to create directory if it doesn't exist.
|
||||
if !p.exists() {
|
||||
std::fs::create_dir(&p).unwrap();
|
||||
if let Err(e) = std::fs::create_dir(&p) {
|
||||
eprintln!("Unable to create .ucg directory {}", e);
|
||||
}
|
||||
}
|
||||
import_paths.push(p);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user