diff --git a/src/interfaces/jdbc/org/postgresql/util/PSQLException.java b/src/interfaces/jdbc/org/postgresql/util/PSQLException.java index 36290a5db1531d8f584b5d2a51280fd42647634f..1f206addce26bfb05f5b74292dbc53de9415cd7e 100644 --- a/src/interfaces/jdbc/org/postgresql/util/PSQLException.java +++ b/src/interfaces/jdbc/org/postgresql/util/PSQLException.java @@ -66,17 +66,21 @@ public class PSQLException extends SQLException try { bundle = ResourceBundle.getBundle("org.postgresql.errors"); } catch(MissingResourceException e) { + // translation files have not been installed. + message = id; } } + if (bundle != null) { // Now look up a localized message. If one is not found, then use // the supplied message instead. - message = null; - try { - message = bundle.getString(id); - } catch(MissingResourceException e) { - message = id; - } + message = null; + try { + message = bundle.getString(id); + } catch(MissingResourceException e) { + message = id; + } + } // Expand any arguments if(args!=null)