Review these two TypeScript handlers from the same service. A client wants one error-handling code path for both.