A fix for the e2e issue which restores the use of a catch block

This commit is contained in:
Mark J
2025-05-09 10:17:03 +00:00
committed by setop
parent afe418b211
commit bfd6d0ada1
2 changed files with 14 additions and 3 deletions

View File

@@ -239,7 +239,13 @@ const loginAction = async (e: Event) => {
throw new Error("Loading user's identities failed");
}
await initializeCurrentActor(currentUserIdentitiesResult.loggedUser.actors);
// at some point this function was refactored to log errors rather than
// throwing them, which made the catch below useless. The second argument
// specifies that errors should be thrown instead of logged
await initializeCurrentActor(
currentUserIdentitiesResult.loggedUser.actors,
true
);
// Step 3a following
const loggedUserLocationResult = await loggedUserLocationPromise;