From cb263a026f4347eb9707bd36678b5d7c4c030d9c Mon Sep 17 00:00:00 2001 From: MidAutumnMoon Date: Tue, 17 Sep 2024 13:24:54 +0800 Subject: [PATCH] fix wrong variable name (very unlikely code path) --- lib/reinbow/painter.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/reinbow/painter.rb b/lib/reinbow/painter.rb index ca8ef69..1d1f3d6 100644 --- a/lib/reinbow/painter.rb +++ b/lib/reinbow/painter.rb @@ -89,7 +89,7 @@ def paint!( data:, layer: :fg ) ground = layer == :fg ? 38 : 48 @sgr_stack.push( "\e[#{ground};2;#{red};#{green};#{blue}m" ) else - raise NotImplementedError, "Can't paint #{code.class}" + raise NotImplementedError, "Can't paint #{data.class}" end self