Can you provide an example of how to parse an upload session finish error. Here's what I have but none of these cases are triggered. I do get Error but no further details. Thanks.
// we're ready to finish the upload and commit the file
client.files.uploadSessionFinish(cursor: Files.UploadSessionCursor(sessionId: result.sessionId, offset: position),
commit: Files.CommitInfo(path: “somePath”),
body:data).response { response, error in
if let result = response {
print("UPLOAD SESSION FINISH RESULT: \(result)")
} else {
print("UPLOAD SESSION FINISH ERROR: \(error!)!")
switch error {
case .LookupFailed:
print("LOOKUP FAILED")
case .Path:
print("PATH ERROR")
case .Other:
print("OTHER ERROR")
}
}
}