File tree 1 file changed +12
-4
lines changed
Sources/MuxUploadSDK/PublicAPI
1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -302,6 +302,17 @@ public final class MuxUpload : Hashable, Equatable {
302
302
}
303
303
}
304
304
305
+ extension MuxUpload . UploadError {
306
+ internal init (
307
+ lastStatus: MuxUpload . Status
308
+ ) {
309
+ self . lastStatus = lastStatus
310
+ self . code = MuxErrorCase . unknown
311
+ self . message = " "
312
+ self . reason = nil
313
+ }
314
+ }
315
+
305
316
fileprivate struct InternalUploaderDelegate : ChunkedFileUploaderDelegate {
306
317
let outerDelegate : ( ChunkedFileUploader . InternalUploadState ) -> Void
307
318
@@ -363,10 +374,7 @@ extension Error {
363
374
}
364
375
} else {
365
376
return MuxUpload . UploadError (
366
- lastStatus: lastSeenUploadStatus,
367
- code: MuxErrorCase . unknown,
368
- message: " unknown " ,
369
- reason: nil
377
+ lastStatus: lastSeenUploadStatus
370
378
)
371
379
}
372
380
}
You can’t perform that action at this time.
0 commit comments