File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -291,7 +291,7 @@ enum Ingestion {
291291 // https://github.com/swiftlang/swift/issues/76169
292292 assert ( false , " Unexpected error type: \( type ( of: error) ) " )
293293 // We need to throw _something_ here (we should never hit this codepath though)
294- throw Github . Error. requestFailed ( . internalServerError )
294+ throw Github . Error. unexpectedError ( error )
295295 // We could theoretically avoid this whole second catch and just do
296296 // error as! GithubError
297297 // but let's play it safe and not risk a server crash, unlikely as it may be.
Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ enum Github {
2828 case invalidURL( String )
2929 case postRequestFailed( _ url: String , Swift . Error )
3030 case requestFailed( HTTPStatus )
31+ case unexpectedError( Swift . Error )
3132 }
3233
3334 static var decoder : JSONDecoder {
You can’t perform that action at this time.
0 commit comments