Skip to content
Browse files

fix bug on errors

  • Loading branch information...
1 parent aac091e commit fc6dfafca9d6937ee8365f5a10828033faa5fb43 @eloy eloy committed Jan 27, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/neighborparrot/config.rb
View
6 lib/neighborparrot/config.rb
@@ -42,10 +42,10 @@ def dummy_connections?
# @param [Hash] parameters
# @param [Symbol] action [:send/:open]
def check_params(p, action=:send)
- trigger_on_error "Channel can't be nil" if p[:channel].nil? || p[:channel].length == 0
- trigger_on_error "ERROR# Neighborparrot: api_id can't be nil" if p[:api_id].nil? || p[:api_id].length == 0
+ trigger_error "Channel can't be nil" if p[:channel].nil? || p[:channel].length == 0
+ trigger_error "ERROR# Neighborparrot: api_id can't be nil" if p[:api_id].nil? || p[:api_id].length == 0
if action == :send
- trigger_on_error "ERROR# Neighborparrot: api_key can't be nil" if p[:api_key].nil? || p[:api_key].length == 0
+ trigger_error "ERROR# Neighborparrot: api_key can't be nil" if p[:api_key].nil? || p[:api_key].length == 0
end
true
end

0 comments on commit fc6dfaf

Please sign in to comment.
Something went wrong with that request. Please try again.