Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
mahara
mahara
Commits
a833cd6b
Commit
a833cd6b
authored
Feb 12, 2007
by
Nigel McNie
Committed by
Nigel McNie
Feb 12, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Throw a proper exception when a database connection cannot be made,
and add some description for it as well
parent
5b0d126e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
htdocs/init.php
htdocs/init.php
+2
-1
No files found.
htdocs/init.php
View file @
a833cd6b
...
...
@@ -103,7 +103,8 @@ catch (Exception $e) {
$errormessage
=
$e
->
getMessage
();
}
ob_end_clean
();
throw
new
Exception
(
$errormessage
);
$errormessage
=
get_string
(
'dbconnfailed'
,
'error'
)
.
$errormessage
;
throw
new
ConfigSanityException
(
$errormessage
);
}
try
{
load_config
();
...
...
Write
Preview
Markdown
is supported
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