update error condition return codes from 0 to undef