IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 22431


Ignore:
Timestamp:
Feb 24, 2009, 3:30:49 PM (17 years ago)
Author:
Paul Price
Message:

More detail in error messages.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/fits/psFitsHeader.c

    r21028 r22431  
    666666                break;
    667667              default:  // all other META types are ignored
    668                 psWarning("Attempt to write metadata %s of type %x to FITS header ignored.\n",
    669 item->name, item->type);
    670                 break;
     668                psError("Unable to write metadata item %s of type %x to FITS header\n",
     669                        item->name, item->type);
     670                return false;
    671671            }
    672672        }
     
    675675            char fitsErr[MAX_STRING_LENGTH];
    676676            (void)fits_get_errstatus(status, fitsErr);
    677             psError(PS_ERR_IO, true, _("Could not write data to file. CFITSIO Error: %s"), fitsErr);
     677            psError(PS_ERR_IO, true,
     678                    _("Could not write metadata item %s of type %x to FITS header.\nCFITSIO Error: %s"),
     679                    item->name, item->type, fitsErr);
    678680            return false;
    679681        }
Note: See TracChangeset for help on using the changeset viewer.