Skip to content

Commit

Permalink
Improve exception message in AopContext.currentProxy()
Browse files Browse the repository at this point in the history
Closes gh-24321
  • Loading branch information
lixiaolong11000 authored and sbrannen committed Jan 9, 2020
1 parent b0e4b7e commit 047eefd
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -67,7 +67,8 @@ public static Object currentProxy() throws IllegalStateException {
Object proxy = currentProxy.get();
if (proxy == null) {
throw new IllegalStateException(
"Cannot find current proxy: Set 'exposeProxy' property on Advised to 'true' to make it available.");
"Cannot find current proxy: Set 'exposeProxy' property on Advised to 'true' to make it available. " +
"Also Check AopContext.currentProxy() invoke in the origin thread.");
}
return proxy;
}
Expand Down

0 comments on commit 047eefd

Please sign in to comment.