In their snippet, errors would be handled altogether on the promise you get from `getJeansAndSaveThem()`.
You don't have enough information to be outraged at the toy example.
You don't have enough information to be outraged at the toy example.
But in this case encapsulation is a leaky abstraction that just makes the diagnosing of an error more cumbersome.