Logging errors in Swift

Error reporting and handling is tricky. In C, it's done by returning and examining error codes, which is very error prone since it's easy to forget »