summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKornelius Kalnbach <murphy@rubychan.de>2013-06-23 01:04:53 +0200
committerKornelius Kalnbach <murphy@rubychan.de>2013-06-23 01:04:53 +0200
commitfbaf55d69c20897655c80e9723973e2f9490484d (patch)
treee150e63f2624c9a04d2ca1f2d6420ad5ea111d70
parent90adb394e8b4da3a733941fc764c308b34482293 (diff)
downloadcoderay-fbaf55d69c20897655c80e9723973e2f9490484d.tar.gz
more helpful error messages from DebugLint
-rw-r--r--lib/coderay/encoders/debug_lint.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/coderay/encoders/debug_lint.rb b/lib/coderay/encoders/debug_lint.rb
index eeb2a92..0ac89ef 100644
--- a/lib/coderay/encoders/debug_lint.rb
+++ b/lib/coderay/encoders/debug_lint.rb
@@ -35,7 +35,7 @@ module Encoders
end
def end_group kind
- raise IncorrectTokenGroupNesting, "We are inside #{@opened.inspect}, not #{kind}" if @opened.pop != kind
+ raise IncorrectTokenGroupNesting, "We are inside #{@opened.inspect}, not #{kind} (end_group)" if @opened.pop != kind
super
end
@@ -45,7 +45,7 @@ module Encoders
end
def end_line kind
- raise IncorrectTokenGroupNesting, "We are inside #{@opened.inspect}, not #{kind}" if @opened.pop != kind
+ raise IncorrectTokenGroupNesting, "We are inside #{@opened.inspect}, not #{kind} (end_line)" if @opened.pop != kind
super
end