Browse Source

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

qdn
CalDescent 3 years ago
parent
commit
77479215a6
  1. 4
      src/main/java/org/qortal/arbitrary/ArbitraryDataMerge.java

4
src/main/java/org/qortal/arbitrary/ArbitraryDataMerge.java

@ -126,9 +126,7 @@ public class ArbitraryDataMerge {
Path mergePath = Paths.get(this.mergePath.toString(), path.toString()); Path mergePath = Paths.get(this.mergePath.toString(), path.toString());
if (!patchPath.toFile().exists()) { if (!patchPath.toFile().exists()) {
// Patch file doesn't exist, but its path was included in modifiedPaths throw new IllegalStateException("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;
} }
// Delete an existing file, as we are starting from a duplicate of pathBefore // Delete an existing file, as we are starting from a duplicate of pathBefore

Loading…
Cancel
Save