Skip to content

Commit ffca68d

Browse files
Alexey AndreevAlexey Andreev
authored andcommitted
JS: escape quotes in some diagnostics with parametrized messages
1 parent 37a94ea commit ffca68d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

js/js.frontend/src/org/jetbrains/kotlin/js/resolve/diagnostics/DefaultErrorMessagesJs.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,14 @@ private val DIAGNOSTIC_FACTORY_TO_RENDERER by lazy {
5858
put(ErrorsJs.NESTED_JS_MODULE_PROHIBITED, "@JsModule and @JsNonModule can't appear on here since the file is already " +
5959
"marked by either @JsModule or @JsNonModule")
6060
put(ErrorsJs.CALL_TO_JS_MODULE_WITHOUT_MODULE_SYSTEM,
61-
"Can't access {0} marked with @JsModule annotation from non-modular project", Renderers.DECLARATION_NAME_WITH_KIND)
61+
"Can''t access {0} marked with @JsModule annotation from non-modular project", Renderers.DECLARATION_NAME_WITH_KIND)
6262
put(ErrorsJs.CALL_TO_JS_NON_MODULE_WITH_MODULE_SYSTEM,
63-
"Can't access {0} marked with @JsNonModule annotation from modular project", Renderers.DECLARATION_NAME_WITH_KIND)
63+
"Can''t access {0} marked with @JsNonModule annotation from modular project", Renderers.DECLARATION_NAME_WITH_KIND)
6464
put(ErrorsJs.CALL_FROM_UMD_MUST_BE_JS_MODULE_AND_JS_NON_MODULE, "When accessing module declarations from UMD, " +
6565
"they must be marked by both @JsModule and @JsNonModule")
6666

6767
put(ErrorsJs.NON_EXTERNAL_DECLARATION_IN_INAPPROPRIATE_FILE,
68-
"Can't put non-external declarations in file marked with {0} annotation", RENDER_TYPE)
68+
"Can''t put non-external declarations in file marked with {0} annotation", RENDER_TYPE)
6969
put(ErrorsJs.WRONG_JS_QUALIFIER, "Qualifier contains illegal characters")
7070

7171
put(ErrorsJs.CANNOT_CHECK_FOR_NATIVE_INTERFACE, "Cannot check for native interface: {0}", RENDER_TYPE)

0 commit comments

Comments
 (0)