st2client/st2client/commands/action.py
def _get_top_level_error(self, live_action):
        """
        Retrieve a top level workflow error.

        :return: (error, traceback)
        """
        if isinstance(live_action.result, dict):
            error = live_action.result.get('error', None)
            traceback = live_action.result.get('traceback', None)
        else:
            error = "See result"
            traceback = "See result"

        return error, traceback

        Retrieve a top level workflow error.

        :return: (error, traceback)
        
Retrieve a top level workflow error.
Retrieve a top level workflow error .
def _get_top_level_error(self, live_action):
        if isinstance(live_action.result, dict):
            error = live_action.result.get('error', None)
            traceback = live_action.result.get('traceback', None)
        else:
            error = "See result"
            traceback = "See result"
        return error, traceback
def _get_top_level_error ( self , live_action ) : if isinstance ( live_action . result , dict ) : error = live_action . result . get ( 'error' , None ) traceback = live_action . result . get ( 'traceback' , None ) else : error = "See result" traceback = "See result" return error , traceback
Retrieve a top level workflow error.
Retrieve a top level workflow error .
"""
        Retrieve a top level workflow error.

        :return: (error, traceback)
        """
None
self
live_action