Skip to content

Commit

Permalink
Improve error output of install_from_xmldb_file(). Part of MDL-7262
Browse files Browse the repository at this point in the history
  • Loading branch information
stronk7 committed Oct 28, 2006
1 parent 6a1055b commit 5d68b50
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/ddllib.php
Expand Up @@ -530,6 +530,12 @@ function install_from_xmldb_file($file) {

$loaded = $xmldb_file->loadXMLStructure();
if (!$loaded || !$xmldb_file->isLoaded()) {
/// Show info about the error if we can find it
if ($structure =& $xmldb_file->getStructure()) {
if ($errors = $structure->getAllErrors()) {
notify('Errors found in XMLDB file: '. implode (', ', $errors));
}
}
return false;
}

Expand Down

0 comments on commit 5d68b50

Please sign in to comment.