Skip to content

Commit

Permalink
srmclient: avoid stack-trace if lcd with incorrect path
Browse files Browse the repository at this point in the history
Motivation:

Providing an incorrect directory with the lcd command results in a
stack-trace.

Modification:

Declare IllegalArgumentException as an expected exception.

Result:

No longer present the user with a stack-trace if the user issues an lcd
command with an incorrect directory.

Target: master
Request: 2.16
Requires-notes: yes
Requires-book: no
Patch: https://rb.dcache.org/r/9802/
Acked-by: Olufemi Adeyemi
  • Loading branch information
paulmillar committed Oct 4, 2016
1 parent d52a213 commit 799a240
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ public class LcdCommand implements Callable<Serializable>
String path;

@Override
public Serializable call() throws IOException
public Serializable call() throws IllegalArgumentException, IOException
{
Path newPath = lcwd.resolve(path).normalize();

Expand Down

0 comments on commit 799a240

Please sign in to comment.