Skip to content

Commit fbaf55d

Browse files
committed
more helpful error messages from DebugLint
1 parent 90adb39 commit fbaf55d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/coderay/encoders/debug_lint.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def begin_group kind
3535
end
3636

3737
def end_group kind
38-
raise IncorrectTokenGroupNesting, "We are inside #{@opened.inspect}, not #{kind}" if @opened.pop != kind
38+
raise IncorrectTokenGroupNesting, "We are inside #{@opened.inspect}, not #{kind} (end_group)" if @opened.pop != kind
3939
super
4040
end
4141

@@ -45,7 +45,7 @@ def begin_line kind
4545
end
4646

4747
def end_line kind
48-
raise IncorrectTokenGroupNesting, "We are inside #{@opened.inspect}, not #{kind}" if @opened.pop != kind
48+
raise IncorrectTokenGroupNesting, "We are inside #{@opened.inspect}, not #{kind} (end_line)" if @opened.pop != kind
4949
super
5050
end
5151

0 commit comments

Comments
 (0)