Ignore:
Timestamp:
05/28/12 14:07:07 (9 years ago)
Author:
Shane Alcock <salcock@…>
Branches:
4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, getfragoff, help, libtrace4, master, ndag_format, pfring, rc-4.0.1, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance, ringtimestampfixes
Children:
16c598d
Parents:
b3edbe9
Message:
  • Detect if a user is attempting to read a compressed format that their libtrace build does not support and provide an appropriate error. Previously, we'd just try to read the trace with a stdout reader, resulting in some very confusing results.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/format_helper.c

    r3787331 r91ea76c  
    266266        io_t *io=wandio_create(trace->uridata);
    267267        if (!io) {
    268                 trace_set_err(trace,errno,"Unable to open %s",trace->uridata);
     268                if (errno != 0) {
     269                        trace_set_err(trace,errno,"Unable to open %s",trace->uridata);
     270                } else {
     271                        trace_set_err(trace,TRACE_ERR_UNSUPPORTED_COMPRESS,"Unsupported compression error: %s", trace->uridata);
     272                }
    269273        }
    270274        return io;
Note: See TracChangeset for help on using the changeset viewer.