Skip to content

Commit b4bb6c4

Browse files
committed
Off-by-one in the error message for a VCR key mismatch.
1 parent d7eb290 commit b4bb6c4

File tree

1 file changed

+1
-1
lines changed
  • jvm/selfie-lib/src/commonMain/kotlin/com/diffplug/selfie

1 file changed

+1
-1
lines changed

jvm/selfie-lib/src/commonMain/kotlin/com/diffplug/selfie/VcrSelfie.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ internal constructor(
111111
val expected = state.frames[currentFrame]
112112
if (expected.first != key) {
113113
throw fs.assertFailed(
114-
mode.msgVcrMismatch("$sub[$OPEN${currentFrame}$CLOSE]", expected.first, key, call),
114+
mode.msgVcrMismatch("$sub[$OPEN${currentFrame+1}$CLOSE]", expected.first, key, call),
115115
expected.first,
116116
key)
117117
}

0 commit comments

Comments
 (0)