Permalink
Browse files

Мелкие правки.

  • Loading branch information...
1 parent 1a63b63 commit 5c37530958ddf6c401b4b092a91d47cdd93a9383 @Tyralion Tyralion committed Mar 18, 2013
Showing with 6 additions and 4 deletions.
  1. +6 −4 watcher
View
10 watcher
@@ -7,18 +7,20 @@ require ::File.expand_path('../lib/watcher', __FILE__)
begin
::SMS.login('main@anlas.ru', 'QsZXVWS')
-rescue ::SocketError
+rescue ::SocketError => e
+ puts "[Socket] #{e}"
rescue => e
- puts "[SMS login error] #{e.message}"
+ puts "[SMS] #{e.message}"
end
at_exit {
begin
::SMS::logout
- rescue ::SocketError
+ rescue ::SocketError => e
+ puts "[Socket] #{e}"
rescue => e
- puts "[SMS logout error] #{e.message}"
+ puts "[SMS] #{e.message}"
end
}

0 comments on commit 5c37530

Please sign in to comment.