Skip to content

Commit

Permalink
add template name to exception messages
Browse files Browse the repository at this point in the history
  • Loading branch information
mwangggg committed Sep 27, 2023
1 parent 5021c0b commit 79a8b44
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/io/cryostat/agent/remote/RecordingsContext.java
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ private SerializableRecordingDescriptor startRecording(StartRecordingRequest req
.orElseThrow(
() ->
new InvalidEventTemplateException(
"Falied to retrieve recording events"));
"Falied to retrieve recording events for " + template.getName()));
cleanup =
() -> {
try {
Expand All @@ -445,7 +445,7 @@ private SerializableRecordingDescriptor startRecording(StartRecordingRequest req
.orElseThrow(
() ->
new InvalidEventTemplateException(
"Failed to retrieve recording events"));
"Failed to retrieve recording events for " + req.localTemplateName));
}
IFlightRecorderService svc = conn.getService();
return new SerializableRecordingDescriptor(
Expand Down

0 comments on commit 79a8b44

Please sign in to comment.