diff options
Diffstat (limited to 'platform/platform-impl/src/com/intellij/openapi/vfs/newvfs/persistent/FSRecords.java')
-rw-r--r-- | platform/platform-impl/src/com/intellij/openapi/vfs/newvfs/persistent/FSRecords.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/platform/platform-impl/src/com/intellij/openapi/vfs/newvfs/persistent/FSRecords.java b/platform/platform-impl/src/com/intellij/openapi/vfs/newvfs/persistent/FSRecords.java index 72cd066472c6..b05b7a285e7b 100644 --- a/platform/platform-impl/src/com/intellij/openapi/vfs/newvfs/persistent/FSRecords.java +++ b/platform/platform-impl/src/com/intellij/openapi/vfs/newvfs/persistent/FSRecords.java @@ -1338,7 +1338,11 @@ public class FSRecords implements Forceable { private static final MessageDigest myDigest = ContentHashesUtil.createHashDigest(); public static void writeContent(int fileId, ByteSequence bytes, boolean readOnly) throws IOException { - new ContentOutputStream(fileId, readOnly).writeBytes(bytes); + try { + new ContentOutputStream(fileId, readOnly).writeBytes(bytes); + } catch (Throwable e) { + throw DbConnection.handleError(e); + } } public static int storeUnlinkedContent(byte[] bytes) { |