bin/d3 in depot3-3.0.15 vs bin/d3 in depot3-3.0.20
- old
+ new
@@ -330,13 +330,13 @@
# make and run d3
app = App.new(ARGV)
app.run
-rescue
+rescue => e
# handle exceptions not handled elsewhere
- D3.log "An error occurred: #{$!.class}: #{$!}", :fatal
- D3.log_backtrace
+ D3.log "An error occurred: #{e.class}: #{e}", :fatal
+ D3.log_backtrace e
exit 1
ensure
if JSS::API.connected?
JSS::DistributionPoint.my_distribution_point.unmount if JSS::DistributionPoint.my_distribution_point.mounted?
D3::Client.disconnect