mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-18 11:05:48 +08:00
Improve error messages
This commit is contained in:
parent
fa49a73fc4
commit
46445759e4
@ -659,28 +659,28 @@ tool_args( int argc, char **argv )
|
||||
|
||||
if (api.ldapai_info_version != LDAP_API_INFO_VERSION) {
|
||||
fprintf( stderr, "LDAP APIInfo version mismatch: "
|
||||
"got %d, expected %d\n",
|
||||
"library %d, header %d\n",
|
||||
api.ldapai_info_version, LDAP_API_INFO_VERSION );
|
||||
exit( EXIT_FAILURE );
|
||||
}
|
||||
|
||||
if( api.ldapai_api_version != LDAP_API_VERSION ) {
|
||||
fprintf( stderr, "LDAP API version mismatch: "
|
||||
"got %d, expected %d\n",
|
||||
"library %d, header %d\n",
|
||||
api.ldapai_api_version, LDAP_API_VERSION );
|
||||
exit( EXIT_FAILURE );
|
||||
}
|
||||
|
||||
if( strcmp(api.ldapai_vendor_name, LDAP_VENDOR_NAME ) != 0 ) {
|
||||
fprintf( stderr, "LDAP vendor name mismatch: "
|
||||
"got %s, expected %s\n",
|
||||
"library %s, header %s\n",
|
||||
api.ldapai_vendor_name, LDAP_VENDOR_NAME );
|
||||
exit( EXIT_FAILURE );
|
||||
}
|
||||
|
||||
if( api.ldapai_vendor_version != LDAP_VENDOR_VERSION ) {
|
||||
fprintf( stderr, "LDAP vendor version mismatch: "
|
||||
"got %d, expected %d\n",
|
||||
"library %d, header %d\n",
|
||||
api.ldapai_vendor_version, LDAP_VENDOR_VERSION );
|
||||
exit( EXIT_FAILURE );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user