Add missing dots when returning errors