Skip to content

Commit

Permalink
Include error message with exception when the agent fails to start. (p…
Browse files Browse the repository at this point in the history
…rometheus#399)

Signed-off-by: Jon Haddad <jon@jonhaddad.com>
  • Loading branch information
rustyrazorblade authored and qinghui-xu committed Sep 18, 2020
1 parent 3d61968 commit 58c6eec
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public static void premain(String agentArgument, Instrumentation instrumentation
server = new HTTPServer(config.socket, CollectorRegistry.defaultRegistry, true);
}
catch (IllegalArgumentException e) {
System.err.println("Usage: -javaagent:/path/to/JavaAgent.jar=[host:]<port>:<yaml configuration file>");
System.err.println("Usage: -javaagent:/path/to/JavaAgent.jar=[host:]<port>:<yaml configuration file> " + e.getMessage());
System.exit(1);
}
}
Expand Down

0 comments on commit 58c6eec

Please sign in to comment.