1
1

Add a few more error constants that will help provide more definitive output to the user

This commit was SVN r14471.
Этот коммит содержится в:
Ralph Castain 2007-04-23 18:25:03 +00:00
родитель 3f428af7b8
Коммит 9cd85ef55a
2 изменённых файлов: 37 добавлений и 1 удалений

Просмотреть файл

@ -93,7 +93,16 @@ enum {
ORTE_ERR_INDETERMINATE_STATE_INFO = (ORTE_ERR_BASE - 25),
ORTE_ERR_NODE_FULLY_USED = (ORTE_ERR_BASE - 26),
ORTE_ERR_INVALID_NUM_PROCS = (ORTE_ERR_BASE - 27),
ORTE_ERR_SILENT = (ORTE_ERR_BASE - 28)
ORTE_ERR_SILENT = (ORTE_ERR_BASE - 28),
ORTE_ERR_ADDRESSEE_UNKNOWN = (ORTE_ERR_BASE - 29),
ORTE_ERR_SYS_LIMITS_PIPES = (ORTE_ERR_BASE - 30),
ORTE_ERR_PIPE_SETUP_FAILURE = (ORTE_ERR_BASE - 31),
ORTE_ERR_SYS_LIMITS_CHILDREN = (ORTE_ERR_BASE - 32),
ORTE_ERR_FAILED_GET_TERM_ATTRS = (ORTE_ERR_BASE - 33),
ORTE_ERR_WDIR_NOT_FOUND = (ORTE_ERR_BASE - 34),
ORTE_ERR_EXE_NOT_FOUND = (ORTE_ERR_BASE - 35),
ORTE_ERR_PIPE_READ_FAILURE = (ORTE_ERR_BASE - 36),
ORTE_ERR_EXE_NOT_ACCESSIBLE = (ORTE_ERR_BASE - 37)
};
#define ORTE_ERR_MAX (ORTE_ERR_BASE - 100)

Просмотреть файл

@ -112,6 +112,33 @@ orte_err2str(int errnum)
case ORTE_ERR_SILENT:
retval = NULL;
break;
case ORTE_ERR_ADDRESSEE_UNKNOWN:
retval = "A message is attempting to be sent to a process whose contact information is unknown";
break;
case ORTE_ERR_SYS_LIMITS_PIPES:
retval = "The system limit on number of pipes a process can open was reached";
break;
case ORTE_ERR_PIPE_SETUP_FAILURE:
retval = "A pipe could not be setup between a daemon and one of its local processes";
break;
case ORTE_ERR_SYS_LIMITS_CHILDREN:
retval = "The system limit on number of children a process can have was reached";
break;
case ORTE_ERR_FAILED_GET_TERM_ATTRS:
retval = "The I/O forwarding system was unable to get the attributes of your terminal";
break;
case ORTE_ERR_WDIR_NOT_FOUND:
retval = "The specified working directory could not be found";
break;
case ORTE_ERR_EXE_NOT_FOUND:
retval = "The specified executable could not be found";
break;
case ORTE_ERR_PIPE_READ_FAILURE:
retval = "A pipe could not be read";
break;
case ORTE_ERR_EXE_NOT_ACCESSIBLE:
retval = "The specified executable could not be executed";
break;
default:
retval = NULL;
}