add flowy-net crate

This commit is contained in:
appflowy
2021-12-12 21:48:52 +08:00
parent dfa9c04f5a
commit df432d11c3
36 changed files with 58 additions and 738 deletions

View File

@ -10,7 +10,7 @@ use tera::Tera;
use walkdir::WalkDir;
pub fn read_file(path: &str) -> Option<String> {
let mut file = File::open(path).expect("Unable to open file");
let mut file = File::open(path).expect(&format!("Unable to open file at {}", path));
let mut content = String::new();
match file.read_to_string(&mut content) {
Ok(_) => Some(content),