diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2009-04-16 17:26:07 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2009-04-16 17:26:07 +0200 |
commit | 2d5e8ba7cd05a95f897506e51dcc5adb06dbcaa8 (patch) | |
tree | 3850eb22a57cc6c7f3abad0acd644d688d8883a3 | |
parent | 3c886026be31a6af61a1b86773634c7bc4a44d7e (diff) | |
download | rsyslog-2d5e8ba7cd05a95f897506e51dcc5adb06dbcaa8.tar.gz rsyslog-2d5e8ba7cd05a95f897506e51dcc5adb06dbcaa8.tar.xz rsyslog-2d5e8ba7cd05a95f897506e51dcc5adb06dbcaa8.zip |
added a new error code for too-old rsyslog core
which can be emittend when plugin can not load due to missing
core functionality.
-rw-r--r-- | plugins/omoracle/omoracle.c | 2 | ||||
-rw-r--r-- | runtime/rsyslog.h | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/plugins/omoracle/omoracle.c b/plugins/omoracle/omoracle.c index ddcb2ffa..71cc8e1f 100644 --- a/plugins/omoracle/omoracle.c +++ b/plugins/omoracle/omoracle.c @@ -560,7 +560,7 @@ CODEmodInit_QueryRegCFSLineHdlr CHKiRet(pHostQueryEtryPt((uchar*)"OMSRgetSupportedTplOpts", &supported_options)); CHKiRet((*supported_options)(&opts)); if (!(array_passing = opts & OMSR_TPL_AS_ARRAY)) - ABORT_FINALIZE(RS_RET_ERR); + ABORT_FINALIZE(RS_RET_RSCORE_TOO_OLD); CHKiRet(omsdRegCFSLineHdlr((uchar*) "omoraclestatement", 0, eCmdHdlrCustomHandler, get_db_statement, diff --git a/runtime/rsyslog.h b/runtime/rsyslog.h index cea457d8..8e181b9e 100644 --- a/runtime/rsyslog.h +++ b/runtime/rsyslog.h @@ -262,6 +262,7 @@ enum rsRetVal_ /** return value. All methods return this if not specified oth RS_RET_INVLD_FUNC = -2113, /**< invalid function name for function call (rainerscript) */ RS_RET_DUP_FUNC_NAME = -2114, /**< duplicate function name (rainerscript) */ RS_RET_UNKNW_FUNC = -2115, /**< unkown function name (rainerscript) */ + RS_RET_RSCORE_TOO_OLD = -2120, /**< rsyslog core is too old for ... (eg this plugin) */ /* RainerScript error messages (range 1000.. 1999) */ RS_RET_SYSVAR_NOT_FOUND = 1001, /**< system variable could not be found (maybe misspelled) */ |