error logging for __toString error