maestro_plugin 0.0.12 → 0.0.13
Sign up to get free protection for your applications and to get access to all the features.
@@ -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)
|