This commits a change to return MODULE_LOAD_FAILURE on error, and SUCCESS (instead of 0) when all goes well for bug 8004

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@43508 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Steve Murphy
2006-09-22 21:36:10 +00:00
parent 3836bbd557
commit 73b0ed54b9

View File

@@ -3825,10 +3825,12 @@ static int pbx_load_module(void)
ast_log(LOG_NOTICE, "AEL load process: verified config file name '%s'.\n", rfilename); ast_log(LOG_NOTICE, "AEL load process: verified config file name '%s'.\n", rfilename);
} else { } else {
ast_log(LOG_ERROR, "Sorry, but %d syntax errors and %d semantic errors were detected. It doesn't make sense to compile.\n", errs, sem_err); ast_log(LOG_ERROR, "Sorry, but %d syntax errors and %d semantic errors were detected. It doesn't make sense to compile.\n", errs, sem_err);
destroy_pval(parse_tree); /* free up the memory */
return AST_MODULE_LOAD_FAILURE;
} }
destroy_pval(parse_tree); /* free up the memory */ destroy_pval(parse_tree); /* free up the memory */
return 0; return AST_MODULE_LOAD_SUCCESS;
} }
/* CLI interface */ /* CLI interface */