For use with async/await patterns that immediately handle errors instead of using try/catch, wraps callback-using functions in promises that return errors in an object instead of rejecting.