diff options
author | mguetlein <martin.guetlein@gmail.com> | 2013-02-22 10:39:56 +0100 |
---|---|---|
committer | mguetlein <martin.guetlein@gmail.com> | 2013-02-22 10:39:56 +0100 |
commit | 4ba2cc9849473f97baf75195bb36c5057f1c58d4 (patch) | |
tree | 1373cfd51e3c52399fc909087f535d69a1b923dc /lib | |
parent | 6d1520b5662b8371a674bbd24b392fd794aa26be (diff) |
fix pending log messages for non-runtime errors
Diffstat (limited to 'lib')
-rw-r--r-- | lib/task.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/task.rb b/lib/task.rb index 3d427bc..82e1665 100644 --- a/lib/task.rb +++ b/lib/task.rb @@ -21,6 +21,7 @@ module OpenTox rescue unless $!.is_a?(RuntimeError) # PENDING: only runtime Errors are logged when raised cut_index = $!.backtrace.find_index{|line| line.match /gems\/sinatra/} + cut_index = -1 unless cut_index msg = "\nTask ERROR\n"+ "task description: #{params[RDF::DC.description]}\n"+ "task uri: #{$!.class.to_s}\n"+ |