We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2fdad21 commit eebb31bCopy full SHA for eebb31b
Sushitrain/App.swift
@@ -30,8 +30,13 @@ struct SushitrainApp: App {
30
#endif
31
32
init() {
33
+ // Install uncaught exception handler
34
+ NSSetUncaughtExceptionHandler { e in
35
+ Log.warn("Uncaught exception: \(e.name) reason=\(e.reason ?? "unknown") returnAddress=\(e.callStackReturnAddresses) symbols=\(e.callStackSymbols)")
36
+ }
37
+
38
+ // Find out all the relevant locations we need to access
39
let configDirectory = Self.configDirectoryURL()
-
40
let documentsDirectory = try! FileManager.default.url(
41
for: .documentDirectory, in: .userDomainMask, appropriateFor: nil, create: true)
42
let documentsPath = documentsDirectory.path(percentEncoded: false)
0 commit comments