fixed error message string formatting for ADT functions