carp the error code only when had the error exists