IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 5, 2007, 2:43:59 PM (19 years ago)
Author:
Paul Price
Message:

Catching error condition to replace ambiguous error with meaningful one.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/concepts/pmConceptsStandard.c

    r12760 r12765  
    547547            // Assume the date is first and the time second
    548548            psList *dateTime = concept->data.V; // The list containing items for date and time
     549            if (psListLength(dateTime) != 2) {
     550                psError(PS_ERR_BAD_PARAMETER_SIZE, false,
     551                        "Unable to parse %s: date and time are not both available.", pattern->name);
     552                return NULL;
     553            }
    549554            psMetadataItem *dateItem = psListGet(dateTime, PS_LIST_HEAD); // Item containing the date
    550555            if (!dateItem) {
Note: See TracChangeset for help on using the changeset viewer.