force error to string