Actions
Bug #7636
closedProblems in the documnt of psych
Description
I found some mistakes in the comment of psych library.
The following is the comment of Psych.load:
Example:¶
Psych.load("--- a") # => 'a'¶
Psych.load("---\n - a\n - b") # => ['a', 'b']¶
begin¶
Psych.load("--- `", "file.txt")¶
rescue Psych::SyntaxError => ex¶
ex.file # => 'file.txt'¶
ex.message # => "(foo.txt): found character that cannot start any token"¶
end¶
The return value of ex.message is not correct. "foo.txt" should be "file.txt".
We can find the same errros on some other methods.
The attached patch fixes this problem. The patch also update the message
for newer versions.
Files
Actions
Like0
Like0Like0