Print moteId with error when error happens