Skip to content

Commit

Permalink
[central] Log an error if workspace initialization fails
Browse files Browse the repository at this point in the history
Signed-off-by: Fr Jeremy Krieg <fr.jkrieg@greekwelfaresa.org.au>
  • Loading branch information
kriegfrj committed Jan 20, 2022
1 parent 62ed03e commit ad124c0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bndtools.core/src/bndtools/central/Central.java
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,10 @@ void activate(BundleContext bc) {
repoListenerTracker.open();
internalPlugins = new InternalPluginTracker(bc);
internalPlugins.open();
// Trigger building of the Workspace object and registering it a service

promiseFactory().submit(Central::getWorkspace);
// Trigger building of the Workspace object and registering it a service
promiseFactory().submit(Central::getWorkspace)
.onFailure(failure -> logger.error("Exception creating Bnd Workspace", failure));
}

@Deactivate
Expand Down

0 comments on commit ad124c0

Please sign in to comment.