- if (detect_container() > 0) {
- log_error("'%s' operation not supported in a container.", argv[0]);
- return -EOPNOTSUPP;
- }
-
- if (!arg_touch_variables) {
- log_error("'%s' operation cannot be combined with --touch-variables=no.", argv[0]);
- return -EINVAL;
- }
+ if (detect_container() > 0)
+ return log_error_errno(SYNTHETIC_ERRNO(EOPNOTSUPP),
+ "'%s' operation not supported in a container.",
+ argv[0]);
+
+ if (!arg_touch_variables)
+ return log_error_errno(SYNTHETIC_ERRNO(EINVAL),
+ "'%s' operation cannot be combined with --touch-variables=no.",
+ argv[0]);