Skip to content

Commit

Permalink
[XrdCl] Check for copy source and target validity to display proper e…
Browse files Browse the repository at this point in the history
…rror messages
  • Loading branch information
ljanyst committed Jun 13, 2014
1 parent 439d2ba commit 60a6ecd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/XrdCl/XrdClCopyProcess.cc
Expand Up @@ -141,8 +141,13 @@ namespace XrdCl

props.Get( "source", tmp );
URL source = tmp;
if( !source.IsValid() )
return XRootDStatus( stError, errInvalidArgs, 0, "invalid source" );

props.Get( "target", tmp );
URL target = tmp;
if( !target.IsValid() )
return XRootDStatus( stError, errInvalidArgs, 0, "invalid target" );

bool tpc = false;
bool tpcFallBack = false;
Expand Down

0 comments on commit 60a6ecd

Please sign in to comment.