Throw an exception if a patch file doesn't exist.

This commit is contained in:
CalDescent 2021-08-18 20:32:47 +01:00
parent 11da1f72b1
commit 77479215a6

View File

@ -126,9 +126,7 @@ public class ArbitraryDataMerge {
Path mergePath = Paths.get(this.mergePath.toString(), path.toString());
if (!patchPath.toFile().exists()) {
// Patch file doesn't exist, but its path was included in modifiedPaths
// TODO: We ought to throw an exception here, but skipping for now
return;
throw new IllegalStateException("Patch file doesn't exist, but its path was included in modifiedPaths");
}
// Delete an existing file, as we are starting from a duplicate of pathBefore