distinguish error from truncation

Signed-off-by: Christian Wyss <christian.wyss@gfk.com>