create error message dictionary integrated with TR