mirror of
https://github.com/boostorg/website.git
synced 2026-01-19 04:42:17 +00:00
Catch json errors when reading from modules
This commit is contained in:
@@ -187,7 +187,11 @@ function read_metadata_from_modules($path, $location, $hash, $sublibs = array('l
|
||||
}
|
||||
else {
|
||||
$text = implode("\n", $super_project->run_git("show {$metadata_hash}"));
|
||||
$updated_libs = array_merge($updated_libs, load_from_text($text, $metadata_path, dirname(dirname($metadata_path))));
|
||||
try {
|
||||
$updated_libs = array_merge($updated_libs, load_from_text($text, $metadata_path, dirname(dirname($metadata_path))));
|
||||
} catch (BoostLibraries_DecodeException $e) {
|
||||
echo "Error decoding metadata for library at {$metadata_path}:\n{$e->content()}\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user