IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 8, 2006, 1:32:23 PM (20 years ago)
Author:
jhoblitt
Message:

bug #790 - remove psErrorText.h and inline all error codes. all newly inlined error codes are wrapped with the _() macro from future gettextification

Location:
trunk/psLib/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src

    • Property svn:ignore
      •  

        old new  
        1010libpslib.la.temp
        1111config.h.in
        12 psErrorText.h
        1312*.bb
        1413*.bbg
  • trunk/psLib/src/fits/psFitsHeader.c

    r7823 r8232  
    77 *  @author Robert DeSonia, MHPCC
    88 *
    9  *  @version $Revision: 1.24 $ $Name: not supported by cvs2svn $
    10  *  @date $Date: 2006-07-06 01:13:11 $
     9 *  @version $Revision: 1.25 $ $Name: not supported by cvs2svn $
     10 *  @date $Date: 2006-08-08 23:32:23 $
    1111 *
    1212 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    1919#include "strings.h"
    2020#include "psError.h"
    21 #include "psErrorText.h"
     21
    2222#include "psImageStructManip.h"
    2323#include "psMemory.h"
     
    4848    if (fits == NULL) {
    4949        psError(PS_ERR_BAD_PARAMETER_NULL, true,
    50                 PS_ERRORTEXT_psFits_NULL);
     50                _("The input psFits object can not NULL."));
    5151        return NULL;
    5252    }
     
    181181            }
    182182        default:
    183             psError(PS_ERR_IO, true, PS_ERRORTEXT_psFits_METATYPE_INVALID, keyType);
     183            psError(PS_ERR_IO, true, _("Specified FITS metadata type, %c, is not supported."), keyType);
    184184            return out;
    185185        }
    186186
    187187        if (!success) {
    188             psError(PS_ERR_UNKNOWN, false, PS_ERRORTEXT_psFits_METADATA_ADD_FAILED, keyName);
     188            psError(PS_ERR_UNKNOWN, false, _("Failed to add metadata item, %s."), keyName);
    189189            return out;
    190190        }
     
    195195        char fitsErr[MAX_STRING_LENGTH];
    196196        (void)fits_get_errstatus(status, fitsErr);
    197         psError(PS_ERR_IO, true, PS_ERRORTEXT_psFits_METADATA_ADD_FAILED, fitsErr);
     197        psError(PS_ERR_IO, true, _("Failed to add metadata item, %s."), fitsErr);
    198198        return false;
    199199    }
     
    205205{
    206206    if (fits == NULL) {
    207         psError(PS_ERR_BAD_PARAMETER_NULL, true, PS_ERRORTEXT_psFits_NULL);
     207        psError(PS_ERR_BAD_PARAMETER_NULL, true, _("The input psFits object can not NULL."));
    208208        psFree(out);
    209209        return NULL;
     
    385385            char fitsErr[MAX_STRING_LENGTH];
    386386            (void)fits_get_errstatus(status, fitsErr);
    387             psError(PS_ERR_IO, true, PS_ERRORTEXT_psFits_WRITE_FAILED, fitsErr);
     387            psError(PS_ERR_IO, true, _("Could not write data to file. CFITSIO Error: %s"), fitsErr);
    388388            return false;
    389389        }
     
    400400{
    401401    if (!fits) {
    402         psError(PS_ERR_BAD_PARAMETER_NULL, true, PS_ERRORTEXT_psFits_NULL);
     402        psError(PS_ERR_BAD_PARAMETER_NULL, true, _("The input psFits object can not NULL."));
    403403        return false;
    404404    }
    405405
    406406    if (!output) {
    407         psError(PS_ERR_BAD_PARAMETER_NULL, true, PS_ERRORTEXT_psFits_METADATA_NULL);
     407        psError(PS_ERR_BAD_PARAMETER_NULL, true, _("The input psMetadata was NULL.  Need a non-NULL psMetadata for operation to be performed."));
    408408        return false;
    409409    }
     
    417417{
    418418    if (!fits) {
    419         psError(PS_ERR_BAD_PARAMETER_NULL, true, PS_ERRORTEXT_psFits_NULL);
     419        psError(PS_ERR_BAD_PARAMETER_NULL, true, _("The input psFits object can not NULL."));
    420420        return false;
    421421    }
     
    443443{
    444444    if (header == NULL) {
    445         psError(PS_ERR_BAD_PARAMETER_NULL, true, PS_ERRORTEXT_psFits_METADATA_NULL);
     445        psError(PS_ERR_BAD_PARAMETER_NULL, true, _("The input psMetadata was NULL.  Need a non-NULL psMetadata for operation to be performed."));
    446446        return false;
    447447    }
Note: See TracChangeset for help on using the changeset viewer.