Remove unnecessary error message declaration.