fix the jslint of errormessage