getting an error excerpt out of command failure events