mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Enhancement - Object integration
- Began the big integration festival by moving all objects out of the sandbox. - Hooked up one error message to context.stringtable, just to make a point.
This commit is contained in:
parent
fe4c8f3a9d
commit
97145fbb07
11 changed files with 36 additions and 12 deletions
|
@ -317,8 +317,13 @@ int main (int argc, char** argv)
|
|||
srand (time (NULL));
|
||||
#endif
|
||||
|
||||
// TODO 1.8.0 requires the Context.
|
||||
Context context;
|
||||
|
||||
try
|
||||
{
|
||||
context.initialize (argc, argv);
|
||||
|
||||
// Load the config file from the home directory. If the file cannot be
|
||||
// found, offer to create a sample one.
|
||||
Config conf;
|
||||
|
@ -365,7 +370,7 @@ int main (int argc, char** argv)
|
|||
|
||||
catch (...)
|
||||
{
|
||||
std::cerr << "Unknown error." << std::endl;
|
||||
std::cerr << context.stringtable.get (100, "Unknown error.") << std::endl;
|
||||
return -2;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue