Skip to content
This repository has been archived by the owner on Mar 18, 2021. It is now read-only.

Commit

Permalink
Updated TM bundle handles errors on connecting to remote process.
Browse files Browse the repository at this point in the history
  • Loading branch information
elektronaut committed Oct 23, 2009
1 parent d940e2c commit 68792e1
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
Expand Up @@ -18,6 +18,8 @@ rescue LivecodeServer::ConnectionError => e
puts "Livecode server not running!\n\n"
puts '- Press ⌘B to start in daemon mode'
puts '- Run in Terminal with "livecode run"'
rescue DRb::DRbBadURI => e
puts "Error! Can't connect to remote server."
rescue Exception => e
puts "Error!"
puts " #{e.class}: #{e}"
Expand Down
Expand Up @@ -18,6 +18,8 @@ rescue LivecodeServer::ConnectionError => e
puts "Livecode server not running!\n\n"
puts '- Press ⌘B to start in daemon mode'
puts '- Run in Terminal with "livecode run"'
rescue DRb::DRbBadURI => e
puts "Error! Can't connect to remote server."
rescue Exception => e
puts "Error!"
puts " #{e.class}: #{e}"
Expand Down
Expand Up @@ -18,6 +18,8 @@ rescue LivecodeServer::ConnectionError => e
puts "Livecode server not running!\n\n"
puts '- Press ⌘B to start in daemon mode'
puts '- Run in Terminal with "livecode run"'
rescue DRb::DRbBadURI => e
puts "Error! Can't connect to remote server."
rescue Exception => e
puts "Error!"
puts " #{e.class}: #{e}"
Expand Down
4 changes: 2 additions & 2 deletions lib/livecode_server/command.rb
Expand Up @@ -218,11 +218,11 @@ def update_textmate
print "\nReplace? [y/n] "
end
else
puts "Existing bundle found, are you sure you want to replace it? [y/n] "
print "Existing bundle found, are you sure you want to replace it? [y/n] "
end
if update_bundle
if STDIN.readline.chomp =~ /^y/i
`sudo rm #{escaped_target_path}`
`sudo rm -rf #{escaped_target_path}`
else
update_bundle = false
end
Expand Down

0 comments on commit 68792e1

Please sign in to comment.