KcsStatusId KcsGetLastError (KcsErrDesc *errDesc) |
Use KcsGetLastError() to find information about the most recent error.
Argument |
Description |
---|---|
errDesc |
A pointer to the structure holding information about the last error. If an operating-system-defined error occurs, the sysErrNo field is set. The desc field contains the description of the particular statId. This is either a string in Table 6-1 or Table 6-2, or the literal string "Internal Color Processor Error" or "No description for this status id number". See "Localizing Status Messages", in Chapter 6, Warning and Error Messages, for information on using KcsGetLastError() to localize KcsStatusId. |
KCS_SUCCESS |
KcsErrDesc errDesc; status = KcsLoadProfile(&profile, &profileDesc, KcsLoadAttributesNow); if (status != KCS_SUCCESS) { status = KcsGetLastError(&errDesc); fprintf(stderr,"%s KcsLoadProfile failed error = %s\n", errDesc.desc); exit(1); } |