Skip to content

Fix error message for unrecognized number-of-bookies#1997

Merged
sijie merged 3 commits intoapache:masterfrom
liketic:fix-issue-1925
Mar 27, 2019
Merged

Fix error message for unrecognized number-of-bookies#1997
sijie merged 3 commits intoapache:masterfrom
liketic:fix-issue-1925

Conversation

@liketic
Copy link
Copy Markdown
Contributor

@liketic liketic commented Mar 24, 2019

Closes #1925

try {
numBookies = Integer.parseInt(args[0]);
} catch (NumberFormatException nfe) {
LOG.error("Unrecognized number-of-bookies: " + args[0]);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: use {}

Suggested change
LOG.error("Unrecognized number-of-bookies: " + args[0]);
LOG.error("Unrecognized number-of-bookies: {}", args[0]);

@sijie sijie added this to the 4.10.0 milestone Mar 27, 2019
@sijie sijie merged commit e35a108 into apache:master Mar 27, 2019
sijie pushed a commit that referenced this pull request Mar 27, 2019
Closes #1925 

Reviewers: Enrico Olivelli <eolivelli@gmail.com>, Sijie Guo <sijie@apache.org>

This closes #1997 from liketic/fix-issue-1925

(cherry picked from commit e35a108)
Signed-off-by: Sijie Guo <sijie@apache.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants