Changeset 13175
- Timestamp:
- May 2, 2007, 3:47:11 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/types/psMetadataConfig.c (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/types/psMetadataConfig.c
r12887 r13175 11 11 * @author Joshua Hoblitt, University of Hawaii 2006-2007 12 12 * 13 * @version $Revision: 1.13 4$ $Name: not supported by cvs2svn $14 * @date $Date: 2007-0 4-18 19:38:36$13 * @version $Revision: 1.135 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2007-05-03 01:47:11 $ 15 15 * 16 16 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 777 777 return false; 778 778 } 779 779 780 780 // covert the template, and the rest of the line, into a metadata 781 781 tempMeta = parseTypeValues(template, linePtr); … … 889 889 } else { 890 890 psError(PS_ERR_IO, true, 891 _("Failed to parse the value '%s' of metadata item %s, type %s."), 891 _("Failed to parse the value '%s' of metadata item %s, type %s."), 892 892 strValue, keyName, strType); 893 893 returnValue = false; … … 1044 1044 break; 1045 1045 } 1046 1046 1047 1047 // create the nested metadata 1048 1048 psMetadata *newScope = psMetadataAlloc(); … … 1109 1109 } 1110 1110 1111 // even if it's a "bad line" we know it can't be "blank" after this point 1111 // even if it's a "bad line" we know it can't be "blank" after this point 1112 1112 *notBlank = true; 1113 1113 … … 1298 1298 // bus errors if the file is empty. This seems like a strange result... 1299 1299 if (buf.st_size == 0) { 1300 psError(PS_ERR_IO, true, _("Empty file '%s'.\n"), filename);1300 // We successfully read everything we could. Return a MD containing what we read. 1301 1301 close(fd); 1302 return NULL;1302 return psMetadataAlloc(); 1303 1303 } 1304 1304 … … 1453 1453 psError(PS_ERR_BAD_PARAMETER_VALUE, true, 1454 1454 _("Specified psDataType, %d, is not supported."), PS_DATA_UNKNOWN); 1455 psTrace("psLib.types", 5, "failed to find key %s\n", (char *) keys->data[i]);1455 psTrace("psLib.types", 5, "failed to find key %s\n", (char *) keys->data[i]); 1456 1456 psFree(keys); 1457 1457 psFree(format); … … 1461 1461 if (!str) { 1462 1462 psError(PS_ERR_UNKNOWN, false, "failed to format psMetadataItem"); 1463 psTrace("psLib.types", 5, "failed to format %s\n", (char *) keys->data[i]);1463 psTrace("psLib.types", 5, "failed to format %s\n", (char *) keys->data[i]); 1464 1464 psFree(keys); 1465 1465 psFree(format);
Note:
See TracChangeset
for help on using the changeset viewer.
