Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
have clear responsibility, who sets errors #2726
For plugins we have a well-defined interface (plugins must set an error if they return -1) but for functions from libs this responsibility currently is not so clear:
as we now can transform every error to a warning easily, we could let the function set an error (normal case) and if the caller has some workaround, the caller can transform the error to a warning. This seems to be more robust than trusting that the callee sets the errors (which often does not happen, e.g. elektraSpecloadOpen if elektraInvokeOpen failed).
The docu of these functions and doc/CODING.md also needs to be updated to reflect the new error concept.