Skip to content

Commit

Permalink
Handle errors when starting run
Browse files Browse the repository at this point in the history
  • Loading branch information
finnvoor committed Apr 9, 2024
1 parent dfbc4ee commit d2875ab
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
{
"identity" : "appstoreconnect-swift-sdk",
"kind" : "remoteSourceControl",
"location" : "https://github.com/AvdLee/appstoreconnect-swift-sdk.git",
"location" : "https://github.com/finnvoor/appstoreconnect-swift-sdk.git",
"state" : {
"revision" : "7665555243f556b4cf4e5736b35331620d02c925",
"version" : "3.1.0"
"branch" : "master",
"revision" : "0cd74e93e216ad0103d199dc333e762643d1ebdf"
}
},
{
Expand Down
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ let package = Package(
products: [.executable(name: "xcc", targets: ["xcc"])],
dependencies: [
.package(url: "https://github.com/apple/swift-argument-parser.git", from: "1.2.0"),
.package(url: "https://github.com/AvdLee/appstoreconnect-swift-sdk.git", from: "3.1.0"),
.package(url: "https://github.com/finnvoor/appstoreconnect-swift-sdk.git", branch: "master"),
.package(url: "https://github.com/Finnvoor/SwiftTUI.git", from: "1.0.3")
],
targets: [
Expand Down
4 changes: 2 additions & 2 deletions Sources/xcc.swift
Original file line number Diff line number Diff line change
Expand Up @@ -146,14 +146,14 @@ import SwiftTUI
CommandLine.chooseFromList(gitReferences, prompt: "Select a reference:")
}

guard let selectedGitReference else {
guard selectedGitReference != nil else {
throw Error.couldNotFindReference(availableReferences: gitReferences)
}
}


ActivityIndicator.start()
_ = try? await provider.request(APIEndpoint.v1.ciBuildRuns.post(.init(
_ = try await provider.request(APIEndpoint.v1.ciBuildRuns.post(.init(
data: .init(
type: .ciBuildRuns,
relationships: .init(
Expand Down

0 comments on commit d2875ab

Please sign in to comment.