- Changed the wording on most error messages and diagnostics so that
  the user is not alarmed, and is somewhat guided toward a solution.
This commit is contained in:
Paul Beckingham 2010-10-06 23:29:45 -04:00
parent 4028a2fce4
commit 74dcdd897a
11 changed files with 118 additions and 123 deletions

View file

@ -157,20 +157,20 @@ bool Uri::expand (const std::string& configPrefix )
if (data.length ())
{
// try to replace argument with uri from config
tmp = context.config.get (configPrefix + "." + data + ".uri");
}
tmp = context.config.get (configPrefix + "." + data + ".uri");
}
else
{
// get default target from config
tmp = context.config.get (configPrefix + ".default.uri");
}
if (tmp != "")
{
data = tmp;
return true;
}
return false;
}
@ -181,8 +181,8 @@ void Uri::parse ()
{
path = data;
return;
}
}
std::string::size_type pos;
std::string uripart;
std::string pathDelimiter = "/";
@ -213,7 +213,7 @@ void Uri::parse ()
}
else
{
throw std::string ("Could not parse \""+data+"\"");
throw std::string ("The uri '") + data + "' is not in the expected format.";
}
// parse host
@ -232,4 +232,4 @@ void Uri::parse ()
}
}
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////