- Managed to cut/paste a superfluous semicolon.  Oops.
This commit is contained in:
Paul Beckingham 2010-10-06 23:54:15 -04:00
parent 74dcdd897a
commit 42521fea8b
4 changed files with 8 additions and 8 deletions

View file

@ -50,7 +50,7 @@ void TransportCurl::send(const std::string& source)
throw std::string ("When using the 'curl' protocol, wildcards are not supported.");
if (!uri.is_directory())
throw std::string ("The uri '"); + uri.path + "' does not appear to be a directory.";
throw std::string ("The uri '") + uri.path + "' does not appear to be a directory.";
std::string toSplit;
std::string suffix;
@ -105,7 +105,7 @@ void TransportCurl::recv(std::string target)
throw std::string ("When using the 'curl' protocol, wildcards are not supported.");
if (!is_directory(target))
throw std::string ("The uri '"); + target + "' does not appear to be a directory.";
throw std::string ("The uri '") + target + "' does not appear to be a directory.";
std::string toSplit;
std::string suffix;

View file

@ -42,7 +42,7 @@ void TransportRSYNC::send(const std::string& source)
// Is there more than one file to transfer?
// Then path has to end with a '/'
if (is_filelist(source) && !uri.is_directory())
throw std::string ("The uri '"); + uri.path + "' does not appear to be a directory.";
throw std::string ("The uri '") + uri.path + "' does not appear to be a directory.";
// cmd line is: rsync [--port=PORT] source [user@]host::path
if (uri.port != "")
@ -74,7 +74,7 @@ void TransportRSYNC::recv(std::string target)
// Is there more than one file to transfer?
// Then target has to end with a '/'
if (is_filelist(uri.path) && !is_directory(target))
throw std::string ("The uri '"); + target + "' does not appear to be a directory.";
throw std::string ("The uri '") + target + "' does not appear to be a directory.";
// cmd line is: rsync [--port=PORT] [user@]host::path target
if (uri.port != "")

View file

@ -42,7 +42,7 @@ void TransportSSH::send(const std::string& source)
// Is there more than one file to transfer?
// Then path has to end with a '/'
if (is_filelist(source) && !uri.is_directory())
throw std::string ("The uri '"); + uri.path + "' does not appear to be a directory.";
throw std::string ("The uri '") + uri.path + "' does not appear to be a directory.";
// cmd line is: scp [-p port] [user@]host:path
if (uri.port != "")
@ -75,7 +75,7 @@ void TransportSSH::recv(std::string target)
// Is there more than one file to transfer?
// Then target has to end with a '/'
if (is_filelist(uri.path) && !is_directory(target))
throw std::string ("The uri '"); + target + "' does not appear to be a directory.";
throw std::string ("The uri '") + target + "' does not appear to be a directory.";
// cmd line is: scp [-p port] [user@]host:path
if (uri.port != "")

View file

@ -665,7 +665,7 @@ void handlePush (std::string& outs)
{
// copy files locally
if (!uri.is_directory())
throw std::string ("The uri '"); + uri.path + "' does not appear to be a directory.";
throw std::string ("The uri '") + uri.path + "' does not appear to be a directory.";
std::ifstream ifile1 ((location.data + "/undo.data").c_str(), std::ios_base::binary);
std::ofstream ofile1 ((uri.path + "undo.data").c_str(), std::ios_base::binary);
@ -704,7 +704,7 @@ void handlePull (std::string& outs)
Directory location (context.config.get ("data.location"));
if (!uri.append ("{pending,undo,completed}.data"))
throw std::string ("The uri '"); + uri.path + "' does not appear to be a directory.";
throw std::string ("The uri '") + uri.path + "' does not appear to be a directory.";
Transport* transport;
if ((transport = Transport::getTransport (uri)) != NULL)