indeo: use proper error code