Yes; the complete text of the error message, including the title ("Error # in <function_name>"). Also information about the ship you're refitting, the class you're refitting from, the class you're refitting to, the shipyard you're using, the locations of all of the above, and additional information.
Screenshots are quite helpful.