Skip to content

Commit

Permalink
Remove implicit tuple splats
Browse files Browse the repository at this point in the history
  • Loading branch information
mxcl committed Feb 17, 2016
1 parent 75b418c commit f3309a5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Sources/Utility/Verbosity.swift
Expand Up @@ -101,12 +101,12 @@ public func system(arguments: String..., environment: [String:String] = [:], mes
} else {
try system(arguments, environment: environment)
}
} catch POSIX.Error.ExitStatus(let foo) {
} catch {
if verbosity == .Concise {
print(prettyArguments(arguments), toStream: &stderr)
print(out, toStream: &stderr)
}
throw POSIX.Error.ExitStatus(foo)
throw error
}
}

Expand Down
4 changes: 2 additions & 2 deletions Sources/swift-build/xp.swift
Expand Up @@ -17,7 +17,7 @@ import POSIX
public func describe(prefix: String, _ conf: Configuration, _ modules: [Module], _ products: [Product], Xcc: [String], Xld: [String]) throws -> String {
do {
return try Build.describe(prefix, conf, modules, products, Xcc: Xcc, Xld: Xld)
} catch POSIX.Error.ExitStatus(let foo) {
} catch {

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

throw POSIX.Error.ExitStatus(foo)
throw error
}
}
#endif

0 comments on commit f3309a5

Please sign in to comment.