Skip to content

Commit

Permalink
Added error handling around documentation scanning
Browse files Browse the repository at this point in the history
This way we atleast do not crash the application when the documentation plugin does not startup correctly.

fixes #2111
  • Loading branch information
dilipkrish committed Nov 28, 2017
1 parent 1606caf commit d1a6a1c
Showing 1 changed file with 5 additions and 1 deletion.
Expand Up @@ -92,7 +92,11 @@ private DocumentationContext buildContext(DocumentationPlugin each) {
}

private void scanDocumentation(DocumentationContext context) {
scanned.addDocumentation(resourceListing.scan(context));
try {
scanned.addDocumentation(resourceListing.scan(context));
} catch (Exception e) {
log.error(String.format("Unable to scan documentation context %s", context.getGroupName()), e);
}
}

private DocumentationContextBuilder defaultContextBuilder(DocumentationPlugin plugin) {
Expand Down

0 comments on commit d1a6a1c

Please sign in to comment.