Reporting Successes and Errors
Let’s learn to write code to report successes and errors in the script we've written.
Reporting partial success
First, let’s report partial success as we go until there’s an error. We’ll enter this at the end of pipeline_errors.exs after the module:
To see this in action, we’ll run this script through the following command:
Executable
Output
Report partial success:
[
{:error, %RuntimeError{message: "Oops!"}, 1},
{:result, ...