Skip to content

Commit

Permalink
Fix merge error
Browse files Browse the repository at this point in the history
Signed-off-by: Arjan Tijms <arjan.tijms@omnifish.ee>
  • Loading branch information
arjantijms committed Mar 5, 2024
1 parent 53d53cc commit 3f19e5d
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -17,6 +17,7 @@

package org.jvnet.hk2.osgiadapter;

import static org.jvnet.hk2.osgiadapter.FelixPrettyPrinter.prettyPrintFelixMessage;
import static org.jvnet.hk2.osgiadapter.Logger.logger;

import java.io.*;
Expand Down Expand Up @@ -180,7 +181,9 @@ public void start() throws ResolveError {
"start", "Started bundle {0}", bundle);
}
} catch (BundleException e) {
throw new ResolveError("Failed to start "+this,e);
throw new ResolveError(
"Failed to start " + this + prettyPrintFelixMessage(registry.getBundleContext(), e.getMessage()),
e);
}

// TODO(Sahoo): Remove this when hk2-apt generates equivalent BundleActivator
Expand Down

0 comments on commit 3f19e5d

Please sign in to comment.