Skip to content

Commit

Permalink
Improve error message.
Browse files Browse the repository at this point in the history
  • Loading branch information
raphw committed Mar 4, 2024
1 parent 3b4ed21 commit ddc7698
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -703,7 +703,9 @@ private static void installExternal(AttachmentProvider.Accessor.ExternalAttachme
agent.getAbsolutePath(),
Boolean.toString(isNative),
argument == null ? "" : (AGENT_ARGUMENT_SEPARATOR + argument)).start().waitFor() != SUCCESSFUL_ATTACH) {
throw new IllegalStateException("Could not self-attach to current VM using external process");
throw new IllegalStateException("Could not self-attach to current VM using external process - set a property "
+ Attacher.DUMP_PROPERTY
+ " to dump the process output to a file at the specified location");
}
} finally {
if (attachmentJar != null) {
Expand Down

0 comments on commit ddc7698

Please sign in to comment.