return log_oom();
r = set_put(members, m);
- if (r == -EEXIST)
- return log_error_errno(r, "Invalid introspection data: duplicate interface '%s'.", interface);
+ if (r == 0)
+ return log_error_errno(SYNTHETIC_ERRNO(EEXIST),
+ "Invalid introspection data: duplicate interface '%s'.", interface);
if (r < 0)
return log_oom();
return log_oom();
r = set_put(members, m);
- if (r == -EEXIST)
- return log_error_errno(r, "Invalid introspection data: duplicate method '%s' on interface '%s'.", name, interface);
+ if (r == 0)
+ return log_error_errno(SYNTHETIC_ERRNO(EEXIST),
+ "Invalid introspection data: duplicate method '%s' on interface '%s'.", name, interface);
if (r < 0)
return log_oom();
return log_oom();
r = set_put(members, m);
- if (r == -EEXIST)
- return log_error_errno(r, "Invalid introspection data: duplicate signal '%s' on interface '%s'.", name, interface);
+ if (r == 0)
+ return log_error_errno(SYNTHETIC_ERRNO(EEXIST),
+ "Invalid introspection data: duplicate signal '%s' on interface '%s'.", name, interface);
if (r < 0)
return log_oom();
return log_oom();
r = set_put(members, m);
- if (r == -EEXIST)
- return log_error_errno(r, "Invalid introspection data: duplicate property '%s' on interface '%s'.", name, interface);
+ if (r == 0)
+ return log_error_errno(SYNTHETIC_ERRNO(EEXIST),
+ "Invalid introspection data: duplicate property '%s' on interface '%s'.", name, interface);
if (r < 0)
return log_oom();