Added more detail to exception message.

This commit is contained in:
CalDescent 2021-08-21 08:35:12 +01:00
parent 5bed5fb8fd
commit 7397b9fa87

View File

@ -161,7 +161,7 @@ public class ArbitraryDataFile {
try {
return Files.copy(sourcePath, destPath, StandardCopyOption.REPLACE_EXISTING);
} catch (IOException e) {
throw new IllegalStateException("Unable to copy file to data directory");
throw new IllegalStateException(String.format("Unable to copy file %s to data directory %s", sourcePath, destPath));
}
}