Skip to content

Commit 33f1b3b

Browse files
committed
chore(iOS): improve error messages
1 parent 4b59b20 commit 33f1b3b

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2020

2121
- Fixed incorrect path to types
2222

23+
#### Changed
24+
25+
- Improved error messages when validation of the freeRASP configuration fails
26+
2327
### Android
2428

2529
#### Fixed

ios/FreeraspReactNative.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class FreeraspReactNative: RCTEventEmitter {
2020
try initializeTalsec(talsecConfig: options)
2121
}
2222
catch let error as NSError {
23-
reject("initialization_error", "Could not initialize freeRASP", error)
23+
reject("TalsecInitializationError", "Could not initialize freeRASP: \(error.domain)", error)
2424
return
2525
}
2626
resolve("freeRASP started")

0 commit comments

Comments
 (0)