Print return codes to console