-
-
Notifications
You must be signed in to change notification settings - Fork 342
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: opening some directory crashes xplorer
- Loading branch information
1 parent
288bdff
commit 349187f
Showing
3 changed files
with
136 additions
and
132 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
use std::path::PathBuf; | ||
pub fn read_to_serde_json(path: PathBuf) -> serde_json::Value { | ||
let file: Result<serde_json::Value, serde_json::Error> = | ||
serde_json::from_str(std::fs::read_to_string(path).unwrap().as_str()); | ||
let file = match file { | ||
Ok(file) => file, | ||
Err(_) => { | ||
panic!("Error parsing file"); | ||
} | ||
}; | ||
file | ||
} |
349187f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
xplorer – ./docs
xplorer.vercel.app
xplorer-git-master-kimlimjustin.vercel.app
xplorer-docs.vercel.app
xplorer-kimlimjustin.vercel.app
xplore.vercel.app
xplorer.space
349187f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
updater – ./api/updater
updater.xplorer.space
updater-kimlimjustin.vercel.app
updater-git-master-kimlimjustin.vercel.app