printing error code