Skip to content

Commit

Permalink
send to stderr instead
Browse files Browse the repository at this point in the history
djmitche committed Mar 31, 2024

Verified

This commit was signed with the committer’s verified signature.
djmitche Dustin J. Mitchell
1 parent e7ed549 commit 5e96213
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/TDB2.cpp
Original file line number Diff line number Diff line change
@@ -60,10 +60,10 @@ void TDB2::open_replica (const std::string& location, bool create_if_missing)
File pending_data = File (location + "/pending.data");
if (pending_data.exists()) {
Color warning = Color (Context::getContext ().config.get ("color.warning"));
std::cout << warning.colorize (
std::cerr << warning.colorize (
format ("Found existing '.data' files in {1}", location)) << "\n";
std::cout << " Taskwarrior's storage format changed in 3.0, requiring a manual migration.\n";
std::cout << " See https://github.com/GothenburgBitFactory/taskwarrior/releases.\n";
std::cerr << " Taskwarrior's storage format changed in 3.0, requiring a manual migration.\n";
std::cerr << " See https://github.com/GothenburgBitFactory/taskwarrior/releases.\n";
}
replica = tc::Replica(location, create_if_missing);
}

0 comments on commit 5e96213

Please sign in to comment.