Skip to content

Commit

Permalink
don't wrap sessionconfigerror
Browse files Browse the repository at this point in the history
  • Loading branch information
daniellacosse committed Mar 13, 2024
1 parent f7fe8c2 commit cbcf94c
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@ export async function fetchShadowsocksSessionConfig(configLocation: URL): Promis

return parseShadowsocksSessionConfigJson(responseBody);
} catch (cause) {
if (cause instanceof errors.SessionConfigError) {
throw cause;

Check warning on line 90 in src/www/app/outline_server_repository/access_key_serialization.ts

View check run for this annotation

Codecov / codecov/patch

src/www/app/outline_server_repository/access_key_serialization.ts#L89-L90

Added lines #L89 - L90 were not covered by tests
}

throw new errors.ServerAccessKeyInvalid('Failed to parse VPN information fetched from dynamic access key.', {
cause,
});
Expand Down

0 comments on commit cbcf94c

Please sign in to comment.