Skip to content

Commit 5b6b984

Browse files
Improve diag. message
1 parent 6b94bb4 commit 5b6b984

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

psi-java/src/main/kotlin/io/spine/tools/psi/java/PsiElementExts.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,10 @@ public fun PsiElement.getFirstByText(
6767
findFirstByText(startsWith, contains)
6868
?: error(
6969
"""
70-
The child element was not found.
70+
A child PSI element could not be found.
7171
File: ${this.containingFile.name}
7272
Parent element: `$this`
73+
Code:
7374
```
7475
""".trimIndent() +
7576
this.node.text +

0 commit comments

Comments
 (0)