diff options
Diffstat (limited to 'src/main/java/org/openslx/satellitedaemon/db/MySQL.java')
-rw-r--r-- | src/main/java/org/openslx/satellitedaemon/db/MySQL.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main/java/org/openslx/satellitedaemon/db/MySQL.java b/src/main/java/org/openslx/satellitedaemon/db/MySQL.java index e225d54..230f455 100644 --- a/src/main/java/org/openslx/satellitedaemon/db/MySQL.java +++ b/src/main/java/org/openslx/satellitedaemon/db/MySQL.java @@ -34,16 +34,16 @@ class MySQL { // Load connection info from class (TODO: Make pretty) Properties properties = new Properties(); + String propertiesPath = "config/mysql.properties"; try { - // using "mysql.properties.example" for testing - final BufferedInputStream stream = new BufferedInputStream( new FileInputStream( "config/mysql.properties" ) ); + final BufferedInputStream stream = new BufferedInputStream( new FileInputStream( propertiesPath ) ); properties.load( stream ); stream.close(); } catch ( FileNotFoundException e ) { - log.fatal( "config/mysql.properties not found!" ); + log.fatal( propertiesPath + " not found!" ); System.exit( 1 ); } catch ( IOException e ) { - log.fatal( "Error reading from config/mysql.properties: " + e.getMessage() ); + log.fatal( "Error reading from " + propertiesPath + ": " + e.getMessage() ); System.exit( 1 ); } catch ( Exception e ) { log.fatal( "Generic error loading mysql properties file." ); |