mirror of
https://git.v0l.io/Kieran/void.cat.git
synced 2025-11-15 12:47:19 +01:00
Fail upload if metadata stripping fails
This commit is contained in:
@@ -79,8 +79,8 @@ public class LocalDiskFileStore : StreamFileStore, IFileStore
|
||||
}
|
||||
else
|
||||
{
|
||||
// move orig file back
|
||||
File.Move(srcPath, finalPath);
|
||||
File.Delete(srcPath);
|
||||
throw new Exception("Failed to strip metadata, please try again");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user