Skip to content

Commit bcfc6f8

Browse files
committed
test case emits error on unsupported OS for --netrc-file option
1 parent 7089e73 commit bcfc6f8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Sources/Commands/SwiftTool.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -377,10 +377,10 @@ public class SwiftTool {
377377
if #available(macOS 10.13, *) {
378378
// ok, check succeeds
379379
} else {
380-
diagnostics.emit(error: "--netrc-file option is only supported on macOS >=10.13")
380+
diagnostics.emit(error: "'--netrc-file' option is only supported on macOS >=10.13")
381381
}
382382
#else
383-
diagnostics.emit(error: "--netrc-file option is only supported on macOS >=10.13")
383+
diagnostics.emit(error: "'--netrc-file' option is only supported on macOS >=10.13")
384384
#endif
385385
}
386386
}

Tests/CommandsTests/PackageToolTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ final class PackageToolTests: XCTestCase {
4646
func verifyUnsupportedOSThrows() {
4747
do {
4848
// should throw and be caught
49-
try execute(["--netrc-file", "/Users/me/.hidden/.netrc"])
49+
try execute(["update", "--netrc-file", "/Users/me/.hidden/.netrc"])
5050
XCTFail()
5151
} catch {
5252
XCTAssert(true)

0 commit comments

Comments
 (0)