Changeset 85 for trunk/pbs_drmaa/util.c
- Timestamp:
- 01/17/13 18:44:15 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/pbs_drmaa/util.c
r70 r85 114 114 115 115 void 116 pbsdrmaa_exc_raise_pbs( const char *function )116 pbsdrmaa_exc_raise_pbs( const char *function, int connection ) 117 117 { 118 118 int _pbs_errno; 119 119 int fsd_errno; 120 120 const char *message = NULL; 121 const char *extended_message = NULL; 121 122 122 123 _pbs_errno = pbs_errno; … … 128 129 #endif 129 130 131 if ( connection != -1 ) 132 { 133 extended_message = pbs_geterrmsg(connection); 134 } 135 130 136 fsd_errno = pbsdrmaa_map_pbs_errno( _pbs_errno ); 131 fsd_log_error(( 132 "call to %s returned with error %d:%s mapped to %d:%s", 133 function, 134 _pbs_errno, message, 135 fsd_errno, fsd_strerror(fsd_errno) 136 )); 137 fsd_exc_raise_fmt( fsd_errno, " %s", function, message ); 138 } 139 137 138 fsd_log_error(( "call to %s returned with error %d:%s(%s) mapped to %d:%s", 139 function, 140 _pbs_errno, message, extended_message, 141 fsd_errno, fsd_strerror(fsd_errno) 142 )); 143 144 if (extended_message) 145 fsd_exc_raise_fmt(fsd_errno, "%s: %s ", message, extended_message); 146 else 147 fsd_exc_raise_fmt(fsd_errno, "%s", message); 148 } 140 149 141 150 /** Maps PBS error code into DMRAA code. */
Note: See TracChangeset
for help on using the changeset viewer.