forked from Qortal/qortal
Throw an exception if a patch file doesn't exist.
This commit is contained in:
parent
11da1f72b1
commit
77479215a6
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user