diff --git a/lib/assimilator.rb b/lib/assimilator.rb index 2baf46c56..cc7a9e2cc 100755 --- a/lib/assimilator.rb +++ b/lib/assimilator.rb @@ -153,7 +153,9 @@ def execute(cmd, env_vars={}, safe=true) def die(msg) status('error', msg) - puts "Abort: #{msg}" + puts errormsg = "Abort: #{msg}" + cmd = ['./lib/assimilator.rb', repo, ref, sha, pusher] * ' ' + logger.error errormsg + "\n" + cmd cleanup_processes exit 1 end