mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Sync
- 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:
parent
4028a2fce4
commit
74dcdd897a
11 changed files with 118 additions and 123 deletions
16
src/Uri.cpp
16
src/Uri.cpp
|
@ -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 ()
|
|||
}
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue