diff --git a/src/main/java/com/amazon/ion/impl/macro/MacroEvaluator.kt b/src/main/java/com/amazon/ion/impl/macro/MacroEvaluator.kt index 52c3229a0..46015fb8d 100644 --- a/src/main/java/com/amazon/ion/impl/macro/MacroEvaluator.kt +++ b/src/main/java/com/amazon/ion/impl/macro/MacroEvaluator.kt @@ -250,7 +250,7 @@ class MacroEvaluator { when (it) { is StringValue -> newSymbolToken(it.value) is SymbolValue -> it.value - is DataModelValue -> throw IonException("Invalid argument type for 'make_string': ${it.type}") + is DataModelValue -> throw IonException("Invalid argument type for 'annotate': ${it.type}") else -> unreachable("Unreachable without stepping in to a container") } }