We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent abffea8 commit 22a1133Copy full SHA for 22a1133
ios/Classes/Translator.swift
@@ -158,5 +158,10 @@ func getErrorMap(_ arg: Error) -> [String : Any?] {
158
}
159
160
func getFlutterError(_ arg: Error) -> FlutterError {
161
- return FlutterError(code: "\((arg as NSError).code)", message:arg.localizedDescription, details: nil)
162
-}
+ let error = arg as NSError;
+ if let isoError = error.userInfo[NFCISO15693TagResponseErrorKey] {
163
+ return FlutterError(code: "\(isoError)", message:error.localizedDescription, details: nil);
164
+ } else {
165
+ return FlutterError(code: "\(error.code)", message:error.localizedDescription, details: nil);
166
+ }
167
+}
0 commit comments