From e3e628175e33affec49646becf30ef508d0f1c17 Mon Sep 17 00:00:00 2001 From: Jake Wharton Date: Thu, 7 Nov 2024 13:58:29 -0500 Subject: [PATCH] Unwrap raw numerical value for exception message (#2431) --- .../app/cash/redwood/protocol/host/HostProtocolAdapter.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/redwood-protocol-host/src/commonMain/kotlin/app/cash/redwood/protocol/host/HostProtocolAdapter.kt b/redwood-protocol-host/src/commonMain/kotlin/app/cash/redwood/protocol/host/HostProtocolAdapter.kt index 4d481f7587..1b5649d4d8 100644 --- a/redwood-protocol-host/src/commonMain/kotlin/app/cash/redwood/protocol/host/HostProtocolAdapter.kt +++ b/redwood-protocol-host/src/commonMain/kotlin/app/cash/redwood/protocol/host/HostProtocolAdapter.kt @@ -366,7 +366,7 @@ public class HostProtocolAdapter( // Reuse the node. val old = nodes.put(widgetId.value, pooled) require(old == null) { - "Insert attempted to replace existing widget with ID $widgetId" + "Insert attempted to replace existing widget with ID ${widgetId.value}" } val skippedCreate = changesAndNulls[changeIndexForCreate] as Create