diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2008-04-02 12:26:03 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2008-04-02 12:26:03 +0000 |
commit | 0434294dd0df17f45bfcbb5925ff6d6d623c684a (patch) | |
tree | ac3d0947208bb67b9aac63ce53fa9a4b82777b68 /modules.c | |
parent | e0ca4d182eda0111553dbb9c5500bbcc0370ee07 (diff) | |
download | rsyslog-0434294dd0df17f45bfcbb5925ff6d6d623c684a.tar.gz rsyslog-0434294dd0df17f45bfcbb5925ff6d6d623c684a.tar.xz rsyslog-0434294dd0df17f45bfcbb5925ff6d6d623c684a.zip |
added more meaningful error messages to rsyslogd (when some errors happens
during startup)
Diffstat (limited to 'modules.c')
-rw-r--r-- | modules.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -594,7 +594,7 @@ Load(uchar *pModName) } else { errmsg.LogError(NO_ERRCODE, "could not load module '%s', path too long\n", pModName); free(pModNameDup); - ABORT_FINALIZE(RS_RET_ERR); + ABORT_FINALIZE(RS_RET_MODULE_LOAD_ERR_PATHLEN); } } } @@ -619,24 +619,24 @@ Load(uchar *pModName) if(iPathLen + strlen((char*) pModName) >= sizeof(szPath)) { errmsg.LogError(NO_ERRCODE, "could not load module '%s', path too long\n", pModName); - ABORT_FINALIZE(RS_RET_ERR); + ABORT_FINALIZE(RS_RET_MODULE_LOAD_ERR_PATHLEN); } /* complete load path constructed, so ... GO! */ dbgprintf("loading module '%s'\n", szPath); if(!(pModHdlr = dlopen((char *) szPath, RTLD_NOW))) { errmsg.LogError(NO_ERRCODE, "could not load module '%s', dlopen: %s\n", szPath, dlerror()); - ABORT_FINALIZE(RS_RET_ERR); + ABORT_FINALIZE(RS_RET_MODULE_LOAD_ERR_DLOPEN); } if(!(pModInit = dlsym(pModHdlr, "modInit"))) { errmsg.LogError(NO_ERRCODE, "could not load module '%s', dlsym: %s\n", szPath, dlerror()); dlclose(pModHdlr); - ABORT_FINALIZE(RS_RET_ERR); + ABORT_FINALIZE(RS_RET_MODULE_LOAD_ERR_NO_INIT); } if((iRet = doModInit(pModInit, (uchar*) pModName, pModHdlr)) != RS_RET_OK) { errmsg.LogError(NO_ERRCODE, "could not load module '%s', rsyslog error %d\n", szPath, iRet); dlclose(pModHdlr); - ABORT_FINALIZE(RS_RET_ERR); + ABORT_FINALIZE(RS_RET_MODULE_LOAD_ERR_INIT_FAILED); } finalize_it: |