Skip to content

Adds Error Message to REPL when Current Directory Not Readable#1468

Merged
ianoc merged 2 commits intotwitter:developfrom
ulyssepence:current-dir-perm-denied-message
Jan 8, 2016
Merged

Adds Error Message to REPL when Current Directory Not Readable#1468
ianoc merged 2 commits intotwitter:developfrom
ulyssepence:current-dir-perm-denied-message

Conversation

@ulyssepence
Copy link
Contributor

Normally, if the current directory is not readable, new File(currentDirectory).listFiles() will lead to a NullPointerException in findAllUpPath. This patch adds a better error message.

Alternatively, I could be persuaded to return an empty List instead of throwing a RuntimeException from findAllUpPath because I'm not aware of any contract that says you have to run the hadoop command from a readable directory.

@johnynek
Copy link
Collaborator

johnynek commented Jan 8, 2016

merge when green

ianoc added a commit that referenced this pull request Jan 8, 2016
Adds Error Message to REPL when Current Directory Not Readable
@ianoc ianoc merged commit aa541d1 into twitter:develop Jan 8, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants