Skip to content

Commit 04f9912

Browse files
committed
Catch Let
1 parent 586246c commit 04f9912

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,6 @@ matrix:
3636
- tar xzf swift-3.0.2-RELEASE-ubuntu14.04.tar.gz
3737
- export PATH=${PWD}/swift-3.0.2-RELEASE-ubuntu14.04/usr/bin:"${PATH}"
3838
# Move the package config file into place
39-
- sudo ./swift-3.0.2-RELEASE-ubuntu14.04/usr/bin/swift utils/make-pkgconfig.swift
39+
- ./swift-3.0.2-RELEASE-ubuntu14.04/usr/bin/swift utils/make-pkgconfig.swift
4040
script:
4141
- swift build

utils/make-pkgconfig.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ func makeFile() throws {
106106

107107
do {
108108
try makeFile()
109-
} catch {
110-
// print("error: \(error)")
109+
} catch let err {
110+
print("error: \(err)")
111111
exit(-1)
112112
}

0 commit comments

Comments
 (0)