Adds the class of the nested error to output