IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 35864


Ignore:
Timestamp:
Jul 30, 2013, 12:19:48 PM (13 years ago)
Author:
bills
Message:

In psMetadataConfigRead return error if psSlurpFilename returns an empty string rather
than continuing and letting the parser fail. This makes the error messages easier to interpret

File:
1 edited

Legend:

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

    r34089 r35864  
    12101210
    12111211    psString file = psSlurpFilename(filename);
     1212    if (!file) {
     1213        psError(PS_ERR_IO, true, _("failed to read file '%s'"), filename);
     1214        return NULL;
     1215    }
    12121216
    12131217    md = psMetadataConfigParse(md, nFail, (char *)file, overwrite);
Note: See TracChangeset for help on using the changeset viewer.