Actions
Feature #5029
closedaccept multiple args in Kernel#warn(), like puts()
Status:
Closed
Assignee:
-
Target version:
-
Description
Hello,
Please make Kernel#warn() like Kernel#puts():
- Accept multiple arguments.
- Print them separated by newline.
This will allow me to warn exceptions easily:
begin
...
rescue => error
warn error.inspect, error.backtrace
end
Instead of the current way, of having to write:
begin
...
rescue => error
warn error.inspect
warn error.backtrace.join("\n")
end
Thanks for your consideration.
Files
Actions
Like0
Like0Like0