def flash(self, message, error=False):
        type = error and 'error' or 'info'
        self.session.setdefault('flashes', []).append((type, message))
Simple exception handler to allow post-completion status.
dataset/ETHPy150Open mitsuhiko/solace/solace/application.py/Request.flash--crossover with--dataset/ETHPy150Open GoogleCloudPlatform/gsutil/gslib/commands/perfdiag.py/PerfDiagCommand._PerfdiagExceptionHandler