Skip to content

Commit 3103af0

Browse files
committed
fix(JSAutoTestService): change warning logs to error logs for element retrieval failures
1 parent dc22322 commit 3103af0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

javascript/src/main/kotlin/cc/unitmesh/ide/javascript/provider/testing/JSAutoTestService.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,13 @@ class JSAutoTestService : AutoTestService() {
5757

5858
val elementToTest = runReadAction { Util.getElementToTest(psiElement) }
5959
if (elementToTest == null) {
60-
log.warn("Failed to find element to test for: ${psiElement}, check your function is exported.")
60+
log.error("Failed to find element to test for: ${psiElement}, check your function is exported.")
6161
return null
6262
}
6363

6464
val elementName = runReadAction { JSPsiUtil.elementName(elementToTest) }
6565
if (elementName == null) {
66-
log.warn("Failed to find element name for: $psiElement")
66+
log.error("Failed to find element name for: $psiElement")
6767
return null
6868
}
6969

0 commit comments

Comments
 (0)