Skip to content

PFFile contentsAtPath fails after upgrading to Parse 1.9 #395

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
natecraft1 opened this issue Oct 9, 2015 · 1 comment
Closed

PFFile contentsAtPath fails after upgrading to Parse 1.9 #395

natecraft1 opened this issue Oct 9, 2015 · 1 comment
Labels
type:feature New feature or improvement of existing feature

Comments

@natecraft1
Copy link

This line:
let videoFile: PFFile = PFFile(name: "newMovie.mov", contentsAtPath: videoUrl.path!)
errors out on "Call can throw, but is not marked with 'try' and the error is not handled.

@richardjrossiii
Copy link
Contributor

From the release notes:

PFFile constructors now report errors instead of throwing exceptions. #345

Update your code to use the swift 2 style of do-try, and everything should work just fine.

@mtrezza mtrezza added type:improvement type:feature New feature or improvement of existing feature and removed Discussion labels Oct 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:feature New feature or improvement of existing feature
Projects
None yet
Development

No branches or pull requests

3 participants