Changeset 8134


Ignore:
Timestamp:
Mar 9, 2011, 8:35:07 PM (14 years ago)
Author:
wilsonr
Message:

Fixed error messages.

Location:
trunk/anuga_core/source/anuga
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/anuga_core/source/anuga/file/urs_ext.c

    r7762 r8134  
    515515        //printf("\n ferror(fp)  %d, ", (int)ferror(fp));
    516516        if ((int) elements_read == 0 && ferror(fp)) {
    517             fprintf(stderr, "Error reading mux data\n");
     517            fprintf(stderr, "Error reading mux data: %s", strerror(errno));
     518            if (errno == EFAULT)        // error 14 in /usr/include/asm-generic/errno-base.h
     519            {
     520                fprintf(stderr, "NOTE: This error has been seen before in low memory systems with no swap.\n");
     521            }
     522
    518523            fclose(fp);
    519524            free(muxData);
  • trunk/anuga_core/source/anuga/file_conversion/sww2dem.py

    r8105 r8134  
    212212    if missing_vars:
    213213        msg = ("In expression '%s', variables %s are not in the SWW file '%s'"
    214                % (quantity, name_in))
     214               % (quantity, str(missing_vars), name_in))
    215215        raise Exception, msg
    216216
Note: See TracChangeset for help on using the changeset viewer.