Skip to content

Instantly share code, notes, and snippets.

View RodolfoGS's full-sized avatar

Rodolfo RodolfoGS

View GitHub Profile
@RodolfoGS
RodolfoGS / PersistentFileLog.swift
Created September 19, 2024 20:52
Simulate "No space left on device" exception
diff --git a/node_modules/expo-modules-core/ios/Core/Logging/PersistentFileLog.swift b/node_modules/expo-modules-core/ios/Core/Logging/PersistentFileLog.swift
index d0ceffb..a939e7d 100644
--- a/node_modules/expo-modules-core/ios/Core/Logging/PersistentFileLog.swift
+++ b/node_modules/expo-modules-core/ios/Core/Logging/PersistentFileLog.swift
@@ -110,10 +110,12 @@ public class PersistentFileLog {
}
}
- private func appendTextToFile(text: String) {
+ private func appendTextToFile(text: String) throws {