diff --git a/src/main/java/de/srsoftware/widerhall/data/Database.java b/src/main/java/de/srsoftware/widerhall/data/Database.java index 5e7c89d..cfcfa2d 100644 --- a/src/main/java/de/srsoftware/widerhall/data/Database.java +++ b/src/main/java/de/srsoftware/widerhall/data/Database.java @@ -60,13 +60,13 @@ public class Database { * @throws SQLException */ public void run() throws SQLException { - LOG.debug("Running {}",this); + LOG.debug("Führe {} aus",this); try { var stmt = conn.prepareStatement(sql); for (int i = 0; i < args.size(); i++) stmt.setObject(i+1, args.get(i)); stmt.execute(); } catch (SQLException sqle) { - throw new SQLException(t("Query '{}' failed:",this),sqle); + throw new SQLException(t("Query '{}' fehlgeschlagen:",this),sqle); } } @@ -300,7 +300,7 @@ public class Database { Configuration config = Configuration.instance(); var dbFile = config.dbFile(); String url = "jdbc:sqlite:"+dbFile; - LOG.debug("Opening {}",url); + LOG.debug("Öffne {}",url); dbFile.getParentFile().mkdirs(); try { singleton = new Database(DriverManager.getConnection(url)); @@ -356,7 +356,7 @@ public class Database { rs.close(); return val > 0; } catch (SQLException e) { - throw new SQLException(t("Was not able to check existence of table {}!",tbName),e); + throw new SQLException(t("Konnte Existenz der Tabelle {} nicht prüfen!",tbName),e); } }