Project

General

Profile

Actions

Feature #144

closed

make genom_reserve_sequence more "verbose" when unhappy...

Added by François Félix Ingrand over 6 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal

Description

I had a port with a sequence which I did not properly "initialize" (propbably forgot to set _length). I had a :

SafetyPilot: cannot read inport Scan contents

Message... but no clue where to look at... in the
genom_deserialize_t_laser_LaserScan

call from:
 b = posterAddr(ph->id);
  if (b) {
    max = -1;
    s = genom_deserialize_t_laser_LaserScan(
      &b, &max, &(ph->buffer));
  } else s = ERROR;
  posterGive(ph->id);
  if (s) {
    genom_log_warn(0, "cannot read inport Scan contents");
    return genom_serialization(self);
  }

  return genom_ok;

Printing something on stderr? or an assert? or may be nothing... I am just annoyed it took me half a day to find it. ;-)


Files

signature.asc (833 Bytes) signature.asc François Félix Ingrand, 2018-05-08 09:57
Actions

Also available in: Atom PDF