From e5f4cd0fdae7e689789dd74bfbcfa6c52895f037 Mon Sep 17 00:00:00 2001 From: Szilard Nemeth Date: Fri, 9 Aug 2019 12:13:37 +0200 Subject: [PATCH] SUBMARINE-57. Add more elaborate message if submarine command is not recognized. Contributed by Adam Antal --- .../java/org/apache/hadoop/yarn/submarine/client/cli/Cli.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hadoop-submarine/hadoop-submarine-core/src/main/java/org/apache/hadoop/yarn/submarine/client/cli/Cli.java b/hadoop-submarine/hadoop-submarine-core/src/main/java/org/apache/hadoop/yarn/submarine/client/cli/Cli.java index 593fb89c64f..b1fd90f7c1b 100644 --- a/hadoop-submarine/hadoop-submarine-core/src/main/java/org/apache/hadoop/yarn/submarine/client/cli/Cli.java +++ b/hadoop-submarine/hadoop-submarine-core/src/main/java/org/apache/hadoop/yarn/submarine/client/cli/Cli.java @@ -100,7 +100,7 @@ public class Cli { } } else { printHelp(); - throw new IllegalArgumentException("Bad parameters "); + throw new IllegalArgumentException("Unrecognized option: " + args[0]); } } }