fixed error message for check when same error type library is listed
more than once.