Propagating exception

This commit is contained in:
dougqh 2019-10-08 09:58:58 +02:00
parent b01bef7a23
commit 5edff68c21
1 changed files with 1 additions and 0 deletions

View File

@ -113,6 +113,7 @@ public final class SpringRepositoryInstrumentation extends Instrumenter.Default
result = methodInvocation.proceed();
} catch (Throwable t) {
DECORATOR.onError(scope, t);
throw t;
} finally {
DECORATOR.beforeFinish(scope);
scope.close();