]> source.dussan.org Git - jackcess.git/commitdiff
more user friendly exception message
authorJames Ahlborn <jtahlborn@yahoo.com>
Tue, 21 Apr 2015 22:56:47 +0000 (22:56 +0000)
committerJames Ahlborn <jtahlborn@yahoo.com>
Tue, 21 Apr 2015 22:56:47 +0000 (22:56 +0000)
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@936 f203690c-595d-4dc9-a70b-905162fa7fd2

src/main/java/com/healthmarketscience/jackcess/impl/DatabaseImpl.java

index b7a9305b4134bdfbb83031e13fea20491a95d894..47acb105ed4f599b71216b8a43f5e4c69e1a133f 100644 (file)
@@ -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);
         }
       }