NoMethodError: undefined method 'to_i' for #<ArgumentError: wrong number of arguments
This commit is contained in:
parent
66027b0eb0
commit
3a7a8fd7de
@ -39,7 +39,6 @@ module RedmineDmsf
|
|||||||
)
|
)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
# .to_app
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def call(env)
|
def call(env)
|
||||||
@ -47,7 +46,7 @@ module RedmineDmsf
|
|||||||
status, headers, body = @dav_app.call env
|
status, headers, body = @dav_app.call env
|
||||||
rescue StandardError => e
|
rescue StandardError => e
|
||||||
Rails.logger.error e.message
|
Rails.logger.error e.message
|
||||||
status = e
|
status = defined?(e.to_i) ? e : 500
|
||||||
headers = {}
|
headers = {}
|
||||||
body = ['']
|
body = ['']
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user