Add error handling
Some checks failed
gitea-openium/resgen.swift/pipeline/head There was a failure building this commit

This commit is contained in:
2023-12-11 10:09:24 +01:00
parent 1f2933950b
commit 6f8e3b6664
6 changed files with 73 additions and 26 deletions

View File

@ -33,9 +33,9 @@ class AnalyticsGenerator {
do {
try extensionFileContent.write(to: extensionFilePathURL, atomically: false, encoding: .utf8)
} catch (let error) {
let error = StringiumError.writeFile(extensionFilePath, error.localizedDescription)
let error = AnalyticsError.writeFile(extensionFilePath, error.localizedDescription)
print(error.description)
Stringium.exit(withError: error)
Analytics.exit(withError: error)
}
}