HHH-8231 - Pass along IOException as cause when trying to open script outputs

This commit is contained in:
Steve Ebersole 2013-05-09 14:52:54 -05:00
parent 8c95a6077a
commit 0ff155d065
1 changed files with 1 additions and 1 deletions

View File

@ -189,7 +189,7 @@ class GenerationTargetToScript implements GenerationTarget {
return new FileWriter( file );
}
catch (IOException e) {
throw new PersistenceException( "Unable to open specified script target file for writing : " + fileUrl );
throw new PersistenceException( "Unable to open specified script target file for writing : " + fileUrl, e );
}
}
}