summaryrefslogtreecommitdiff
path: root/src/birka-web.rs
diff options
context:
space:
mode:
authorJakob L. Kreuze <zerodaysfordays@sdf.org>2020-06-19 19:47:03 -0400
committerJakob L. Kreuze <zerodaysfordays@sdf.org>2020-06-19 19:47:03 -0400
commit4e9f8ff708dae197416e17fca29862194de4c25a (patch)
treec5f19def622a47a5ddb707748a0ea06b82ff0811 /src/birka-web.rs
parent418d11a56270aef27ca74419c8a617fdc5195f7b (diff)
[birka-web] handle unused `symlink` Err.
Diffstat (limited to 'src/birka-web.rs')
-rw-r--r--src/birka-web.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/birka-web.rs b/src/birka-web.rs
index e9bb81a..b4d1d12 100644
--- a/src/birka-web.rs
+++ b/src/birka-web.rs
@@ -312,6 +312,10 @@ fn add_to_store(file: &database::File, file_dir: &str) {
let store_path = store_filename(file.id, &file.path);
let store_path = Path::new(file_dir).join(store_path);
symlink(&file.path, &store_path).ok();
+ if !store_path.exists() {
+ panic!("could not create symlink {:?}!", store_path);
+ }
+
let thumb_path = thumb_filename(file.id, &file.path);
let thumb_path = Path::new(file_dir).join(&thumb_path);
if !thumb_path.exists() {