IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 9624


Ignore:
Timestamp:
Oct 18, 2006, 5:27:49 AM (20 years ago)
Author:
rhl
Message:

Clear error stack at start of psMetadataPrint as we append; return false if problems

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/types/psMetadata.c

    r9583 r9624  
    1212 *  @author Ross Harman, MHPCC
    1313 *
    14  *  @version $Revision: 1.140 $ $Name: not supported by cvs2svn $
    15  *  @date $Date: 2006-10-16 23:34:03 $
     14 *  @version $Revision: 1.141 $ $Name: not supported by cvs2svn $
     15 *  @date $Date: 2006-10-18 15:27:49 $
    1616 *
    1717 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    11951195        }
    11961196    }
     1197
     1198    psErrorClear();   // we're going to _append_ errors to the stack
     1199    bool noErrors = true;  // have see seen any errors?
     1200
    11971201    // Casting away const --- the addition of an iterator should not be considered an invasion of "const".
    11981202    psMetadataIterator *iter = psMetadataIteratorAlloc(md, PS_LIST_HEAD, NULL); // Iterator
     
    13841388            //            fprintf(fd, "\n");
    13851389            psError(PS_ERR_IO, false, "Non-printable metadata type: %x\n", item->type);
     1390            noErrors = false;
    13861391            break;
    13871392        }
     
    13911396    psFree(iter);
    13921397
    1393     return true;
     1398    return noErrors;
    13941399}
    13951400
Note: See TracChangeset for help on using the changeset viewer.