log emittable errors; strip out wrapped errors

[finishes #81909016]

Signed-off-by: Michael Fraenkel <fraenkel@us.ibm.com>