diff options
author | Kornelius Kalnbach <murphy@rubychan.de> | 2013-06-23 01:04:53 +0200 |
---|---|---|
committer | Kornelius Kalnbach <murphy@rubychan.de> | 2013-06-23 01:04:53 +0200 |
commit | fbaf55d69c20897655c80e9723973e2f9490484d (patch) | |
tree | e150e63f2624c9a04d2ca1f2d6420ad5ea111d70 /lib/coderay/encoders | |
parent | 90adb394e8b4da3a733941fc764c308b34482293 (diff) | |
download | coderay-fbaf55d69c20897655c80e9723973e2f9490484d.tar.gz |
more helpful error messages from DebugLint
Diffstat (limited to 'lib/coderay/encoders')
-rw-r--r-- | lib/coderay/encoders/debug_lint.rb | 4 |
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 |