From 2708aabddf705d672cdc5d515b4bd77508b89f98 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Tue, 30 Aug 2011 01:09:19 -0400 Subject: [PATCH] Unit Tests - Changed error wording to match the unit tests, which were correct. --- src/commands/CmdModify.cpp | 1 + src/en-US.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/commands/CmdModify.cpp b/src/commands/CmdModify.cpp index cb2ea6cbb..c349d34da 100644 --- a/src/commands/CmdModify.cpp +++ b/src/commands/CmdModify.cpp @@ -83,6 +83,7 @@ int CmdModify::execute (std::string& output) apply_defaults (*task); // Perform some logical consistency checks. + // TODO Shouldn't these tests be in Task::validate? if (task->has ("recur") && !task->has ("due") && !before.has ("due")) diff --git a/src/en-US.h b/src/en-US.h index 37d7f0b34..7c19c23a0 100644 --- a/src/en-US.h +++ b/src/en-US.h @@ -382,7 +382,7 @@ #define STRING_LUA_BAD_EVENT "Unrecognized hook event '{1}'." // Permission -#define STRING_PERM_TASK_LINE "task {1} \"{2}\"" +#define STRING_PERM_TASK_LINE "Task {1} \"{2}\"" #define STRING_PERM_RECURRING "(Recurring)" // Record