diff --git a/src/satosa/base.py b/src/satosa/base.py index 1e17c8cb..40af1997 100644 --- a/src/satosa/base.py +++ b/src/satosa/base.py @@ -280,7 +280,7 @@ def run(self, context): if generic_error_url: redirect_url = f"{generic_error_url}?errorid={error_id}" return Redirect(generic_error_url) - return BadRequest(error) + return BadRequest(e.error) except SATOSAMissingStateError as e: error_id = uuid.uuid4().urn msg = {