I think this is because of the Swift 5 change special-casing Swift.Error, but I didn't look into it in much detail. 