lib/vps_cli/copy.rb in vps_cli-0.1.15 vs lib/vps_cli/copy.rb in vps_cli-0.1.16
- old
+ new
@@ -130,10 +130,10 @@
dconf_load = "dconf load #{gnome_path} < #{config.misc_files}/gnome_terminal_settings"
Rake.sh(dconf_load) if overwrite.call(gnome_path)
rescue RuntimeError => error
puts 'something went wrong with gnome, continuing on' if config.verbose
- VpsCli.errors << error
+ VpsCli.errors << error.exception("Unable to copy gnome settings")
end
def self.root?
root = (Process.uid.zero? || Dir.home == '/root')
root_msg = 'Do not run this as root or sudo. Run as a normal user'