Skip to content

Commit

Permalink
Merge 1dfca00 into 3c39ecc
Browse files Browse the repository at this point in the history
  • Loading branch information
jordaaash committed Mar 24, 2017
2 parents 3c39ecc + 1dfca00 commit e3db2a2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/attorney.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ function applyDatabaseConfig(config) {
if(typeof config == 'string') {
config = {connectionString: config};
}
else if ('connectionString' in config) {
assert(typeof config.connectionString == 'string', 'configuration assert: connectionString must be a string');
}
else {
assert(config.database && config.user && 'password' in config,
'configuration assert: not enough database settings to connect to PostgreSQL');
Expand Down

0 comments on commit e3db2a2

Please sign in to comment.