Maps a Result's error value to a new error
The result to map
Function to transform the error value
New result with transformed error
API: mapError
Maps a Result's error value to a new error