lib/roda/plugins/exception_page.rb in roda-3.72.0 vs lib/roda/plugins/exception_page.rb in roda-3.73.0
- old
+ new
@@ -409,10 +409,10 @@
ExceptionPage.js
end
private
- if RUBY_VERSION >= '3.2'
+ if Exception.method_defined?(:detailed_message)
def exception_page_exception_message(exception)
exception.detailed_message(highlight: false).to_s
end
# :nocov:
else