Skip to content
This repository was archived by the owner on Jan 9, 2020. It is now read-only.

Commit dadd13f

Browse files
pavel-sakunsrowen
authored andcommitted
[SPARK] Misleading error message for missing --proxy-user value
Fix misleading error message when argument is expected. ## What changes were proposed in this pull request? Change message to be accurate. ## How was this patch tested? Messaging change, was tested manually. Author: Pavel Sakun <[email protected]> Closes apache#19457 from pavel-sakun/patch-1.
1 parent b650ee0 commit dadd13f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

launcher/src/main/java/org/apache/spark/launcher/SparkLauncher.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -625,7 +625,7 @@ private static class ArgumentValidator extends SparkSubmitOptionParser {
625625
@Override
626626
protected boolean handle(String opt, String value) {
627627
if (value == null && hasValue) {
628-
throw new IllegalArgumentException(String.format("'%s' does not expect a value.", opt));
628+
throw new IllegalArgumentException(String.format("'%s' expects a value.", opt));
629629
}
630630
return true;
631631
}

0 commit comments

Comments
 (0)