Skip to content

Commit

Permalink
Errors have a different message path
Browse files Browse the repository at this point in the history
  • Loading branch information
bklang committed May 28, 2013
1 parent 202f58f commit 5037c6b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/ruby_ami/lexer.rb
Expand Up @@ -82,7 +82,11 @@ def parse_buffer

handle_response_follows(msg, raw) if response_follows

message_received msg
if msg.class == Error
error_received msg
else
message_received msg
end
end
@data.slice! 0, processed.length
end
Expand Down

0 comments on commit 5037c6b

Please sign in to comment.