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
- msg = "Unexpected error executing task: #{e.class} #{e}"
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)
@@ -1,5 +1,5 @@
1
1
  module Maestro
2
2
  module Plugin
3
- VERSION = '0.0.12'
3
+ VERSION = '0.0.13'
4
4
  end
5
5
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: maestro_plugin
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.12
5
+ version: 0.0.13
6
6
  platform: ruby
7
7
  authors:
8
8
  - Etienne Pelletier