Skip to content

Commit 3d93a51

Browse files
committed
Produce fatal errors on unsupported OS/arch
1 parent 0a5cfd1 commit 3d93a51

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Sources/Swiftly/SelfUpdate.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,11 @@ struct SelfUpdate: SwiftlyCommand {
5858
downloadURL = URL(string: "https://download.swift.org/swiftly/linux/swiftly-\(version)-x86_64.tar.gz")
5959
#elseif arch(arm64)
6060
downloadURL = URL(string: "https://download.swift.org/swiftly/linux/swiftly-\(version)-aarch64.tar.gz")
61+
#else
62+
fatalError("Unsupported architecture")
6163
#endif
64+
#else
65+
fatalError("Unsupported OS")
6266
#endif
6367

6468
guard version > SwiftlyCore.version else {

0 commit comments

Comments
 (0)