Skip to content

Commit f3309a5

Browse files
committed
Remove implicit tuple splats
1 parent 75b418c commit f3309a5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Sources/Utility/Verbosity.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,12 +101,12 @@ public func system(arguments: String..., environment: [String:String] = [:], mes
101101
} else {
102102
try system(arguments, environment: environment)
103103
}
104-
} catch POSIX.Error.ExitStatus(let foo) {
104+
} catch {
105105
if verbosity == .Concise {
106106
print(prettyArguments(arguments), toStream: &stderr)
107107
print(out, toStream: &stderr)
108108
}
109-
throw POSIX.Error.ExitStatus(foo)
109+
throw error
110110
}
111111
}
112112

Sources/swift-build/xp.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import POSIX
1717
public func describe(prefix: String, _ conf: Configuration, _ modules: [Module], _ products: [Product], Xcc: [String], Xld: [String]) throws -> String {
1818
do {
1919
return try Build.describe(prefix, conf, modules, products, Xcc: Xcc, Xld: Xld)
20-
} catch POSIX.Error.ExitStatus(let foo) {
20+
} catch {
2121

2222
// it is a common error on Linux for clang++ to not be installed, but
2323
// we need it for linking. swiftc itself gives a non-useful error, so
@@ -28,7 +28,7 @@ public func describe(prefix: String, _ conf: Configuration, _ modules: [Module],
2828
print("warning: clang++ not found: this will cause build failure", toStream: &stderr)
2929
}
3030

31-
throw POSIX.Error.ExitStatus(foo)
31+
throw error
3232
}
3333
}
3434
#endif

0 commit comments

Comments
 (0)