From 02eff7e9a61bd5c6e074d3f109beea23d4e73edb Mon Sep 17 00:00:00 2001 From: Jon Pretty Date: Mon, 8 Apr 2024 23:17:20 +0200 Subject: [PATCH] Use forgotten `pos` value --- src/core/bin.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/bin.scala b/src/core/bin.scala index 7f20507..2a2b281 100644 --- a/src/core/bin.scala +++ b/src/core/bin.scala @@ -96,7 +96,7 @@ object Rudiments: case idx => val pos = Position(startPos.sourceFile, startPos.start + idx, startPos.start + idx + 1) - fail(msg"${nibbles(idx)} is not a valid hexadecimal character") + fail(msg"${nibbles(idx)} is not a valid hexadecimal character", pos) val nibbles3 = nibbles2.filterNot { ch => ch == ' ' || ch == '\n' }