Index: ossp-pkg/lmtp2nntp/lmtp2nntp_config.h RCS File: /v/ossp/cvs/ossp-pkg/lmtp2nntp/lmtp2nntp_config.h,v rcsdiff -q -kk '-r1.11' '-r1.12' -u '/v/ossp/cvs/ossp-pkg/lmtp2nntp/lmtp2nntp_config.h,v' 2>/dev/null --- lmtp2nntp_config.h 2003/01/30 19:42:13 1.11 +++ lmtp2nntp_config.h 2003/02/11 11:41:11 1.12 @@ -35,6 +35,7 @@ typedef enum { CONFIG_OK, CONFIG_OK_DRY, /* dry run short circuit i.e. --testfile or --version */ + CONFIG_ERR_TRY, /* caught an exception from a underlying codeblock */ CONFIG_ERR_LOG /* cannot initialize logging */ } lmtp2nntp_config_rc_t; Index: ossp-pkg/lmtp2nntp/lmtp2nntp_main.c RCS File: /v/ossp/cvs/ossp-pkg/lmtp2nntp/lmtp2nntp_main.c,v rcsdiff -q -kk '-r1.68' '-r1.69' -u '/v/ossp/cvs/ossp-pkg/lmtp2nntp/lmtp2nntp_main.c,v' 2>/dev/null --- lmtp2nntp_main.c 2003/02/10 14:25:39 1.68 +++ lmtp2nntp_main.c 2003/02/11 11:41:11 1.69 @@ -464,11 +464,18 @@ { lmtp2nntp_option_rc_t rvo; lmtp2nntp_config_rc_t rvc; + ex_t ex; if (option_create(&o, ctx->val) != OPTION_OK) CU(ERR_EXECUTION); rvo = option_parse(o, argc, argv); - rvc = config_context(ctx); + rvc = CONFIG_OK; + try { + rvc = config_context(ctx); + } + catch(ex) { + rvc = CONFIG_ERR_TRY; + } if (rvc == CONFIG_OK_DRY) CU(0); if (rvo != OPTION_OK || rvc != CONFIG_OK)