Remove attribute pure from pstrerror.