web/flows: fix error during error handling

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer
2021-08-23 14:55:45 +02:00
parent 52f2838f57
commit 85915905dc
3 changed files with 6 additions and 7 deletions

View File

@ -159,8 +159,6 @@ export class FlowExecutor extends LitElement implements StageHost {
let body = "";
if (error instanceof Error) {
body = error.message;
} else if (error instanceof Response) {
body = await error.text();
}
this.challenge = {
type: ChallengeChoices.Shell,