maestro_plugin 0.0.12 → 0.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -107,9 +107,11 @@ module Maestro
|
|
107
107
|
write_output(e.message)
|
108
108
|
set_error(e.message)
|
109
109
|
rescue Exception => e
|
110
|
-
|
110
|
+
lowerstack = e.backtrace.find_index(caller[0])
|
111
|
+
stack = lowerstack ? e.backtrace[0..lowerstack - 1] : e.backtrace
|
112
|
+
msg = "Unexpected error executing task: #{e.class} #{e} at\n" + stack.join("\n")
|
111
113
|
write_output(msg)
|
112
|
-
Maestro.log.warn("#{msg} " + e.backtrace.join("\n"))
|
114
|
+
Maestro.log.warn("#{msg}\nFull stack:\n" + e.backtrace.join("\n"))
|
113
115
|
|
114
116
|
# Let user-supplied exception handler do its thing
|
115
117
|
handle_exception(e)
|