From 26fbb4e77bced68d0caadeb96293a438009aadb0 Mon Sep 17 00:00:00 2001 From: Ralph Castain Date: Mon, 20 Jan 2014 19:58:56 +0000 Subject: [PATCH] Necessary constants for postgress module This commit was SVN r30338. --- opal/include/opal/constants.h | 3 ++- opal/runtime/opal_init.c | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/opal/include/opal/constants.h b/opal/include/opal/constants.h index 34ed57114b..d71348a54c 100644 --- a/opal/include/opal/constants.h +++ b/opal/include/opal/constants.h @@ -74,7 +74,8 @@ enum { OPAL_ERR_NOT_BOUND = (OPAL_ERR_BASE - 45), OPAL_ERR_TAKE_NEXT_OPTION = (OPAL_ERR_BASE - 46), OPAL_ERR_PROC_ENTRY_NOT_FOUND = (OPAL_ERR_BASE - 47), - OPAL_ERR_DATA_VALUE_NOT_FOUND = (OPAL_ERR_BASE - 48) + OPAL_ERR_DATA_VALUE_NOT_FOUND = (OPAL_ERR_BASE - 48), + OPAL_ERR_CONNECTION_FAILED = (OPAL_ERR_BASE - 49) }; #define OPAL_ERR_MAX (OPAL_ERR_BASE - 100) diff --git a/opal/runtime/opal_init.c b/opal/runtime/opal_init.c index 78b64e0130..d0a9fee5a6 100644 --- a/opal/runtime/opal_init.c +++ b/opal/runtime/opal_init.c @@ -225,6 +225,9 @@ opal_err2str(int errnum, const char **errmsg) case OPAL_ERR_DATA_VALUE_NOT_FOUND: retval = "Data for specified key not found"; break; + case OPAL_ERR_CONNECTION_FAILED: + retval = "Connection failed"; + break; default: retval = NULL; }