Skip to content
This repository has been archived by the owner on Mar 6, 2023. It is now read-only.

Commit

Permalink
Improve assertion message
Browse files Browse the repository at this point in the history
  • Loading branch information
VladRassokhin committed Jun 3, 2015
1 parent c531ed2 commit d91fae0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/org/intellij/plugins/hcl/psi/impl/HCLPsiImplUtils.kt
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public object HCLPsiImplUtils {
*/
public fun getNameElement(property: HCLProperty): HCLValue {
val firstChild = property.getFirstChild()
assert(firstChild is HCLLiteral || firstChild is HCLIdentifier)
assert(firstChild is HCLLiteral || firstChild is HCLIdentifier, "Excepted literal or identifier, got ${firstChild.javaClass.getName()}")
return firstChild as HCLValue
}

Expand Down

0 comments on commit d91fae0

Please sign in to comment.