Skip to content

Commit

Permalink
Update src/xml/error.cr
Browse files Browse the repository at this point in the history
Co-authored-by: Beta Ziliani <[email protected]>
  • Loading branch information
straight-shoota and beta-ziliani authored Sep 5, 2024
1 parent 710d9f4 commit bdc4888
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/xml/error.cr
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class XML::Error < Exception

@[Deprecated("This class accessor is deprecated. XML errors are accessible directly in the respective context via `XML::Reader#errors` and `XML::Node#errors`.")]
def self.errors : Array(XML::Error)?
{% raise "`XML::Error.errors` is deprecated and its implementation was removed because it leaks memory when it's not used.\nSee https://github.com/crystal-lang/crystal/issues/14934 for details." %}
{% raise "`XML::Error.errors` was removed because it leaks memory when it's not used. XML errors are accessible directly in the respective context via `XML::Reader#errors` and `XML::Node#errors`.\nSee https://github.com/crystal-lang/crystal/issues/14934 for details. " %}
end

def self.collect(errors, &)
Expand Down

0 comments on commit bdc4888

Please sign in to comment.