Changeset 6151 for lang/ruby/net-irc
- Timestamp:
- 02/04/08 13:21:26 (5 years ago)
- Files:
-
- 1 modified
-
lang/ruby/net-irc/trunk/examples/lig.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
lang/ruby/net-irc/trunk/examples/lig.rb
r6150 r6151 340 340 rescue Lingr::Client::APIError => e 341 341 case e.code 342 when 102 # invalid session 342 when 100 343 @log.fatal "BUG: API returns invalid HTTP method" 344 exit 1 345 when 102 346 @log.error "BUG: API returns invalid session. Prompt the client to reconnect." 343 347 finish 344 when 109 # invalid ticket 348 when 104 349 @log.fatal "BUG: API returns invalid response format. JSON is unsupported?" 350 exit 1 351 when 109 352 @log.error "BUG: API returns invalid ticket. Part this channel..." 345 353 on_part(Message.new("", PART, [chan, res["error"]["message"]])) 354 when 114 355 @log.fatal "BUG: API returns no counter parameter." 356 exit 1 357 when 120 358 @log.error "BUG: API returns invalid encoding. But continues." 359 when 122 360 @log.fatal "BUG: API returns repeated counter" 361 exit 1 346 362 else 363 # may be socket error? 347 364 @log.debug "observe failed : #{res.inspect}" 348 365 log "Error: #{e.code}: #{e.message}"
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)