fix error output for Module#remove_const
Merge pull request #844 from skandhas/pr-fix-error-output-for-remove_const

fix incorrect output for Module#remove_const