[minor] Added a small comment and a check for the extistance of the error.