tilia-dav 3.1.0.pre.alpha3 → 3.1.0.pre.alpha4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/tilia/dav/server.rb +6 -18
- data/lib/tilia/dav/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 36d340816a386a03d2fd0d379aad4645f3ee7dab
|
4
|
+
data.tar.gz: f0e62916517751349ab5d671cb1cf36f504212c0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c03c8b130a67c9eb7d12af88058624ef60ab6ca85b8e8fc7ff67c7f20374a0623f073e740dcd311ff6bac95e50906de411d03512d838c6528d5665cc7922c895
|
7
|
+
data.tar.gz: 9509b9b79230dbe5c8ae0ea9d81752b78dd4ab4475fc62868998d33fdff8cc07b5a89b94e9e1c26ef3fae25d4df61a7be9671d7f62979e6554f1443620ccaa0f
|
data/lib/tilia/dav/server.rb
CHANGED
@@ -201,7 +201,7 @@ module Tilia
|
|
201
201
|
# Setting the base url
|
202
202
|
@http_request.base_url = base_uri
|
203
203
|
invoke_method(@http_request, @http_response)
|
204
|
-
rescue Exception => e # use Exception (without ::) for easier debugging
|
204
|
+
rescue ::Exception => e # use Exception (without ::) for easier debugging
|
205
205
|
begin
|
206
206
|
emit('exception', [e])
|
207
207
|
rescue
|
@@ -224,25 +224,13 @@ module Tilia
|
|
224
224
|
|
225
225
|
error << LibXML::XML::Node.new('s:exception', h.call(e.class.to_s))
|
226
226
|
error << LibXML::XML::Node.new('s:message', h.call(e.message))
|
227
|
-
if @debug_exceptions
|
228
|
-
# writer.write_element('s:file', h.call(e.get_file))
|
229
|
-
# writer.write_element('s:line', h.call(e.get_line))
|
230
|
-
# writer.write_element('s:code', h.call(e.get_code))
|
231
|
-
# writer.write_element('s:stacktrace', h.call(e.get_trace_as_string))
|
232
|
-
end
|
233
227
|
|
234
228
|
if @debug_exceptions
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
# x_previous.append_child($DOM.create_element('s:file', h.call(previous.get_file)))
|
241
|
-
# x_previous.append_child($DOM.create_element('s:line', h.call(previous.get_line)))
|
242
|
-
# x_previous.append_child($DOM.create_element('s:code', h.call(previous.get_code)))
|
243
|
-
# x_previous.append_child($DOM.create_element('s:stacktrace', h.call(previous.get_trace_as_string)))
|
244
|
-
# error.append_child(x_previous)
|
245
|
-
# end
|
229
|
+
backtrace_node = LibXML::XML::Node.new('s:backtrace')
|
230
|
+
e.backtrace.each do |entry|
|
231
|
+
backtrace_node << LibXML::XML::Node.new('s:entry', entry)
|
232
|
+
end
|
233
|
+
error << backtrace_node
|
246
234
|
end
|
247
235
|
|
248
236
|
if e.is_a?(Exception)
|
data/lib/tilia/dav/version.rb
CHANGED