ASTERISK-24612 #close
Reported by: Joshua Colp
........
Merged revisions 431771 from http://svn.asterisk.org/svn/asterisk/branches/13
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@431772
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
RAII_VAR(struct ast_sorcery_object_wizard *, object_wizard, ao2_alloc(sizeof(*object_wizard), sorcery_object_wizard_destructor), ao2_cleanup);
int created = 0;
- if (!wizard || !object_wizard) {
+ if (!wizard) {
+ ast_log(LOG_ERROR, "Wizard '%s' could not be applied to object type '%s' as it was not found\n",
+ name, type);
+ return AST_SORCERY_APPLY_FAIL;
+ } else if (!object_wizard) {
return AST_SORCERY_APPLY_FAIL;
}