Added toString() to err message