Skip to content

Commit 5bc0d1b

Browse files
krishnacloudsmfdeveloper
authored andcommitted
Typo in Error Message (#9)
* Typo No harm was done. Just a typo
1 parent 88b1f50 commit 5bc0d1b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/ios/CDVNativeView.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ - (UIViewController*) tryInstantiateViewWithName:(NSString *)name {
104104

105105
- (void) raiseClassNameError {
106106

107-
NSString* message = [[NSString alloc] initWithFormat:@"The UIViewController name is required when the project don't have a navigatioController. Please, pass a className by param in JS, like this: 'NativeView.show('MyUIViewController')"];
107+
NSString* message = [[NSString alloc] initWithFormat:@"The UIViewController name is required when the project don't have a navigationController. Please, pass a className by param in JS, like this: 'NativeView.show('MyUIViewController')"];
108108
@throw [[InstantiateViewControllerError alloc] initWithName: @"nameNotDefined" reason: message userInfo: nil];
109109
}
110110

src/ios/CDVNativeView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ class CDVNativeView: CDVPlugin {
112112
}
113113

114114
private func raiseClassNameError() throws {
115-
throw InstantiateViewControllerError.nameNotDefined("The UIViewController name is required when the project don't have a navigatioController. Please, pass a className by param in JS, like this: 'NativeView.show('MyUIViewController')");
115+
throw InstantiateViewControllerError.nameNotDefined("The UIViewController name is required when the project don't have a navigationController. Please, pass a className by param in JS, like this: 'NativeView.show('MyUIViewController')");
116116
}
117117

118118
}

0 commit comments

Comments
 (0)