Skip to content

Help setting up #1090

Answered by StuClift
HotSurfSpot asked this question in Q&A
Discussion options

You must be logged in to vote

Call can throw, but errors cannot be thrown out of a global variable initializer

Creating the Database file can fail but you are not defining what should happen if it does. I'd recommend reading the Error Handling section of the Swift language manual.

If you want to just get something to compile then you can use try!

Also, "/Desktop/App" is almost certainly not going to create the file you expect. Take a look at one of the examples.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by groue
# for free to join this conversation on GitHub. Already have an account? # to comment
Category
Q&A
Labels
None yet
2 participants