Permalink
Browse files

expand raise messages

  • Loading branch information...
1 parent 5f3110f commit ecb33df704e2423a305615378c29e757f9ba8a38 @mjy committed Apr 10, 2010
Showing with 1 addition and 2 deletions.
  1. +1 −1 lib/lexer.rb
  2. +0 −1 lib/nexus_parser.rb
View
@@ -21,7 +21,7 @@ def pop(token_class)
token = read_next_token(token_class)
@next_token = nil
if token.class != token_class
- raise(NexusParser::ParseError,"expected #{token_class.to_s} but received #{token.class.to_s} at #{@input[0..10]}...", caller)
+ raise(NexusParser::ParseError,"expected #{token_class.to_s} but received #{token.class.to_s} at #{@input[0..40]}...", caller)
else
return token
end
View
@@ -1,6 +1,5 @@
# NexusParser
-# version 0.3 by Matt Yoder
# uses the PhyloTree parser/lexer engine by Krishna Dole which in turn was based on
# Thomas Mailund's <mailund@birc.dk> 'newick-1.0.5' Python library

0 comments on commit ecb33df

Please sign in to comment.