Skip to content

Commit

Permalink
YAML can't parse a SourceIndex, maybe this will help somebody figure …
Browse files Browse the repository at this point in the history
…it out
  • Loading branch information
drbrain committed Jun 18, 2008
1 parent df3143e commit 1f77d0d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/rbyaml/parser.rb
Expand Up @@ -358,7 +358,8 @@ def block_content
elsif token.__is_scalar
return scalar
else
raise ParserError.new("while scanning a node","expected the node content, but found #{token.tid}")
raise ParserError.new("while scanning a node",
"expected the node content, but found #{token.tid.inspect} at #{@scanner.pointer}")
end
end

Expand Down

0 comments on commit 1f77d0d

Please sign in to comment.