clolov commented on code in PR #13131:
URL: https://github.com/apache/kafka/pull/13131#discussion_r1083909966


##########
core/src/main/scala/kafka/tools/ConsoleConsumer.scala:
##########
@@ -352,9 +353,11 @@ object ConsoleConsumer extends Logging {
     } else if (options.has(offsetOpt))
       CommandLineUtils.printUsageAndDie(parser, "The partition is required 
when offset is specified.")
 
-    def invalidOffset(offset: String): Nothing =
+    def invalidOffset(offset: String): Nothing = {
       CommandLineUtils.printUsageAndDie(parser, s"The provided offset value 
'$offset' is incorrect. Valid values are " +
         "'earliest', 'latest', or a non-negative long.")
+      Exit.exit(1)

Review Comment:
   A similar question about using `ToolsUtils.printUsageAndDie(...)` here as 
well.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: jira-unsubscr...@kafka.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to