bin/sx in superhosting-0.0.1 vs bin/sx in superhosting-0.0.2

- old
+ new

@@ -2,9 +2,13 @@ require 'superhosting' begin Superhosting::Cli::Base.start(ARGV) -rescue Superhosting::Cli::Error::Base => e - $stderr.puts([e.net_status[:error], e.net_status[:message]].compact.join(': ')) +rescue NetStatus::Exception => e + net_status = e.net_status.net_status_normalize + $stderr.puts(net_status[:message] || [net_status[:error], net_status[:code]].compact.join(": ")) + exit 1 +rescue Interrupt => e + $stderr.puts('Interrupted') exit 1 end \ No newline at end of file