Skip to content

Commit

Permalink
Update amqp_exchange.c
Browse files Browse the repository at this point in the history
Wrong exception message.

```"Parameter must be an instance of AMQPConnection."```

should be

```"Parameter must be an instance of AMQPChannel."```
  • Loading branch information
kinncj committed Mar 27, 2014
1 parent 3ce1932 commit 6ab0821
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion amqp_exchange.c
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ PHP_METHOD(amqp_exchange_class, __construct)
amqp_channel_object *channel;

if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "OO", &id, amqp_exchange_class_entry, &channelObj, amqp_channel_class_entry) == FAILURE) {
zend_throw_exception(amqp_exchange_exception_class_entry, "Parameter must be an instance of AMQPConnection.", 0 TSRMLS_CC);
zend_throw_exception(amqp_exchange_exception_class_entry, "Parameter must be an instance of AMQPChannel.", 0 TSRMLS_CC);
RETURN_NULL();
}

Expand Down

0 comments on commit 6ab0821

Please sign in to comment.