Skip to content

Commit 4a3a876

Browse files
chore: add a log for clear data failed attempt
1 parent 247a050 commit 4a3a876

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

ios/Modules/Helper/StorageHelper.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ public class StorageHelper {
1919

2020
public static func clearDataAt(url: URL, component: String) {
2121
let path = url.appendingPathComponent(component).path
22-
try? NativeFsModule.remove(path)
22+
do {
23+
try NativeFsModule.remove(path)
24+
} catch {
25+
NSLog("Failed to clear data at path: \(path), error: \(error.localizedDescription)")
26+
}
2327
}
2428
}

0 commit comments

Comments
 (0)