Skip to content

Commit 75b5329

Browse files
committed
clarify warning
1 parent 95091bb commit 75b5329

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

agent/fw_drupal8.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -645,14 +645,15 @@ static bool nr_drupal_hook_attribute_instrument(zval* module_handler) {
645645
ZEND_HASH_FOREACH_STR_KEY_VAL(Z_ARRVAL_P(hook_implementation_map), hook_key,
646646
hook_val) {
647647
if ((NULL == hook_key) || (0 == nr_php_is_zval_valid_array(hook_val))) {
648-
nrl_warning(NRL_FRAMEWORK, "hookImplementationsMap[hook]: invalid value");
648+
nrl_warning(NRL_FRAMEWORK,
649+
"hookImplementationsMap[hook]: invalid key or value");
649650
return false;
650651
}
651652

652653
ZEND_HASH_FOREACH_STR_KEY_VAL(Z_ARRVAL_P(hook_val), class_key, class_val) {
653654
if ((NULL == class_key) || (0 == nr_php_is_zval_valid_array(class_val))) {
654655
nrl_warning(NRL_FRAMEWORK,
655-
"hookImplementationsMap[class]: invalid value");
656+
"hookImplementationsMap[class]: invalid key or value");
656657
return false;
657658
}
658659

@@ -661,7 +662,7 @@ static bool nr_drupal_hook_attribute_instrument(zval* module_handler) {
661662
if ((NULL == method_key)
662663
|| (0 == nr_php_is_zval_valid_string(module_val))) {
663664
nrl_warning(NRL_FRAMEWORK,
664-
"hookImplementationsMap[method]: invalid value");
665+
"hookImplementationsMap[method]: invalid key or value");
665666
return false;
666667
}
667668

0 commit comments

Comments
 (0)