Commits
244 244 | </xsl:for-each> |
245 245 | <xsl:text disable-output-escaping="yes"> |
246 246 | except Exception, instance: |
247 247 | from mpi4casa.MPIEnvironment import MPIEnvironment |
248 248 | if (self.__globals__.has_key('__rethrow_casa_exceptions') and self.__globals__['__rethrow_casa_exceptions']) or\ |
249 249 | (MPIEnvironment.is_mpi_enabled and not MPIEnvironment.is_mpi_client): |
250 250 | raise |
251 251 | else: |
252 252 | #print '**** Error **** ',instance |
253 253 | tname = </xsl:text>'<xsl:value-of select="$taskname"/>'<xsl:text disable-output-escaping="yes"> |
254 - | casalog.post('An error occurred running task '+tname+'.', 'ERROR') |
254 + | casalog.post('Task {} raised an exception of class {} with the following message: {}'. |
255 + | format(tname, type(instance).__name__, instance), 'ERROR') |
255 256 | pass |
256 257 | casalog.origin('') |
257 258 | </xsl:text> |
258 259 | <xsl:for-each select="aps:output"> |
259 260 | <xsl:call-template name="checkoutput"/> |
260 261 | </xsl:for-each> |
261 262 | <xsl:text disable-output-escaping="yes"> |
262 263 | return result |
263 264 | # |
264 265 | # |