Changeset 2911


Ignore:
Timestamp:
2002-01-22T15:41:14+13:00 (21 years ago)
Author:
jrm21
Message:

Try to print out an error if the aux file couldn't be written to.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/packages/mg/src/text/text.pass2.c

    r439 r2911  
    4949/*
    5050   $Log$
     51   Revision 1.2  2002/01/22 02:41:14  jrm21
     52   Try to print out an error if the aux file couldn't be written to.
     53
    5154   Revision 1.1  1999/08/10 21:18:25  sjboddie
    5255   renamed mg-1.3d directory mg
     
    629632  if (!(aux = create_file (FileName, TEXT_DICT_AUX_SUFFIX, "wb",
    630633               MAGIC_AUX_DICT, MG_MESSAGE)))  /* [RPAP - Feb 97: WIN32 Port] */
    631     return COMPERROR;
    632 
     634    {
     635      fprintf(stderr,"Couldn't create file %s%s:%s\n",
     636              FileName, TEXT_DICT_AUX_SUFFIX,
     637#if defined(HAVE_STRERROR) || defined(__WIN32__)
     638              strerror(errno)
     639#else
     640              " "
     641#endif
     642              );
     643      return COMPERROR;
     644    }
    633645  for (i = 0; i <= 1; i++)
    634646    {
Note: See TracChangeset for help on using the changeset viewer.