Skip to content

Commit

Permalink
improving exception thrown when new bundle files cant be created
Browse files Browse the repository at this point in the history
  • Loading branch information
Andy Berry committed Jun 15, 2015
1 parent fc3330c commit 033c759
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public void createBundleFile(File bundleFile, String bundlePath, String version)
private void repeatedlyAttemptToCreateBundleFile(File bundleFile) throws IOException
{
if (bundleFile.exists()) {
throw new IOException( String.format("The bundle file '%s' already exists and should have previously been deleted so new content can be written to it", bundleFile.getAbsolutePath()) );
throw new IOException( String.format("The bundle file '%s' already exists and should not. It should have previously been deleted so new content can be written to it", bundleFile.getAbsolutePath()) );
}
bundleFile.getParentFile().mkdirs();
for (int i = 0; i < 100; i++) {
Expand Down

0 comments on commit 033c759

Please sign in to comment.