OSDN Git Service

Clarify error message for booking declarations before tasks definitions.
authorGrégoire Barbier <g@g76r.eu>
Thu, 30 Jul 2009 00:03:41 +0000 (02:03 +0200)
committerChris Schlaeger <cs@kde.org>
Thu, 20 Aug 2009 18:50:04 +0000 (20:50 +0200)
taskjuggler/ProjectFile.cpp

index 48c3429..37c2192 100644 (file)
@@ -2475,7 +2475,9 @@ ProjectFile::readBooking(int sc, Resource* resource)
         if (((tt = nextToken(token)) != ID && tt != ABSOLUTE_ID) ||
             (task = proj->getTask(getTaskPrefix() + token)) == 0)
         {
-            errorMessage(i18n("Task ID expected"));
+            errorMessage(i18n("Task ID expected (common caveat: booking "
+                "must be specified in a 'supplement resource' section "
+                "following the related task definition)"));
             return false;
         }
     }
@@ -2485,7 +2487,9 @@ ProjectFile::readBooking(int sc, Resource* resource)
         if ((tt != ID && tt != ABSOLUTE_ID) ||
             (task = proj->getTask(getTaskPrefix() + token)) == 0)
         {
-            errorMessage(i18n("Task ID expected"));
+            errorMessage(i18n("Task ID expected (common caveat: booking "
+                "must be specified in a 'supplement resource' section "
+                "following the related task definition)"));
             return false;
         }