add ERRNO only in case of ERROR CODE given