• Dylan Baker's avatar
    framework: Re-raise uncaught exceptions from their original context · 8b75dd6e
    Dylan Baker authored
    When an uncaught exception reaches the top level exception handler, and
    PIGLIT_DEBUG is true, then the exception will be re-raised. The problem
    is that currently the exception is re-raised as 'raise e', which raise
    the correct exception, but does so from the wrong context, making the
    back-trace completely useless. By re-raising by simply using the 'raise'
    keyword causes the exception to be passed on 'as-is', making the back
    trace useful for debugging.
    Signed-off-by: default avatarDylan Baker <dylanx.c.baker@intel.com>
exceptions.py 3.15 KB