Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,11 @@ void cleanCurrentEntryInLocal() {
((CtEntry)parent).child = null;
}
} else {
throw new IllegalStateException("Bad async context state");
String curEntryName = curEntry == null ? "none"
: curEntry.resourceWrapper.getName() + "@" + curEntry.hashCode();
String msg = String.format("Bad async context state, expected entry: %s, but actual: %s",
getResourceWrapper().getName() + "@" + hashCode(), curEntryName);
throw new IllegalStateException(msg);
}
}
}
Expand All @@ -74,7 +78,8 @@ void initAsyncContext() {
.setOrigin(context.getOrigin())
.setCurEntry(this);
} else {
RecordLog.warn("[AsyncEntry] Duplicate initialize of async context for entry: " + resourceWrapper.getName());
RecordLog.warn(
"[AsyncEntry] Duplicate initialize of async context for entry: " + resourceWrapper.getName());
}
}

Expand Down