From bd31e8d58f17617d7d0c8f58e1874693fbb08726 Mon Sep 17 00:00:00 2001 From: Ray Ryan Date: Tue, 6 May 2025 09:47:30 -0700 Subject: [PATCH] Improves the error message thrown by `remember()` for duplicates. --- .../kotlin/com/squareup/workflow1/internal/WorkflowNode.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/workflow-runtime/src/commonMain/kotlin/com/squareup/workflow1/internal/WorkflowNode.kt b/workflow-runtime/src/commonMain/kotlin/com/squareup/workflow1/internal/WorkflowNode.kt index f73d2f374b..17dc3ff7d9 100644 --- a/workflow-runtime/src/commonMain/kotlin/com/squareup/workflow1/internal/WorkflowNode.kt +++ b/workflow-runtime/src/commonMain/kotlin/com/squareup/workflow1/internal/WorkflowNode.kt @@ -183,7 +183,7 @@ internal class WorkflowNode( key != it.key || resultType != it.resultType || !inputs.contentEquals(it.inputs), stackTraceKey = key ) { - "Expected combination of key, inputs and result type to be unique: \"$key\"" + "Expected unique combination of key, input types and result type: \"$key\"" } }