From: James Ahlborn Date: Tue, 21 Apr 2015 22:56:47 +0000 (+0000) Subject: more user friendly exception message X-Git-Tag: jackcess-2.1.1~10 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=05214565537ff0ca6af897168c785bb2210e58ba;p=jackcess.git more user friendly exception message git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@936 f203690c-595d-4dc9-a70b-905162fa7fd2 --- diff --git a/src/main/java/com/healthmarketscience/jackcess/impl/DatabaseImpl.java b/src/main/java/com/healthmarketscience/jackcess/impl/DatabaseImpl.java index b7a9305..47acb10 100644 --- a/src/main/java/com/healthmarketscience/jackcess/impl/DatabaseImpl.java +++ b/src/main/java/com/healthmarketscience/jackcess/impl/DatabaseImpl.java @@ -378,8 +378,9 @@ public class DatabaseImpl implements Database JetFormat jetFormat = JetFormat.getFormat(channel); if(jetFormat.READ_ONLY) { - throw new IOException("jet format '" + jetFormat + - "' does not support writing for " + mdbFile); + throw new IOException("file format " + + jetFormat.getPossibleFileFormats().values() + + " does not support writing for " + mdbFile); } }