Skip to content

Commit

Permalink
Disambiguate error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
sandro committed Jul 13, 2017
1 parent c4af405 commit adb851e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/specjour/listener.rb
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def start
end
end
rescue StandardError, ScriptError => e
$stderr.puts "RESCUED #{e.message}"
$stderr.puts "Listener RESCUED #{e.class} '#{e.message}'"
$stderr.puts e.backtrace
connection.error(e)
ensure
Expand Down
3 changes: 1 addition & 2 deletions lib/specjour/loader.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,8 @@ def start
fork_workers
wait_srv
rescue StandardError, ScriptError => e
$stderr.puts "RESCUED #{e.class} '#{e.message}'"
$stderr.puts "Loader RESCUED #{e.class} '#{e.message}'"
$stderr.puts e.backtrace
$stderr.puts "\n\n"
connection.error(e)
remove_connection
kill_parent
Expand Down
2 changes: 1 addition & 1 deletion lib/specjour/worker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def run_tests
Specjour.plugin_manager.send_task(:after_suite)

rescue StandardError, ScriptError => e
$stderr.puts "RESCUED #{e.message}"
$stderr.puts "Worker RESCUED #{e.class} '#{e.message}'"
$stderr.puts e.backtrace
connection.error(e)
ensure
Expand Down

0 comments on commit adb851e

Please sign in to comment.