Skip to content

Commit

Permalink
NoMethodError: undefined method 'to_i' for #<ArgumentError: wrong num…
Browse files Browse the repository at this point in the history
…ber of arguments
  • Loading branch information
picman committed Jan 28, 2025
1 parent 66027b0 commit 3a7a8fd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/redmine_dmsf/webdav/custom_middleware.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,14 @@ def initialize(app)
)
end
end
# .to_app
end

def call(env)
begin
status, headers, body = @dav_app.call env
rescue StandardError => e
Rails.logger.error e.message
status = e
status = defined?(e.to_i) ? e : 500
headers = {}
body = ['']
end
Expand Down

0 comments on commit 3a7a8fd

Please sign in to comment.