Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
die_coolen_jungs
our_own_cloud_project
Commits
faa49183
Commit
faa49183
authored
Mar 20, 2015
by
Robin Appelman
Browse files
be a little more verbose in the exception message when we cant connect to the db
parent
2a8c3798
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/private/db/connection.php
View file @
faa49183
...
...
@@ -30,7 +30,7 @@ class Connection extends \Doctrine\DBAL\Connection implements IDBConnection {
return
parent
::
connect
();
}
catch
(
DBALException
$e
)
{
// throw a new exception to prevent leaking info from the stacktrace
throw
new
DBALException
(
$e
->
getMessage
(),
$e
->
getCode
());
throw
new
DBALException
(
'Failed to connect to the database: '
.
$e
->
getMessage
(),
$e
->
getCode
());
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment