Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/relayer-provider/v2/RelayerV2PublicKey.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export class RelayerV2PublicKey {

return new RelayerV2PublicKey({ publicKey, crs2048: crs });
} catch (e) {
throw new Error('Impossible to fetch public key: wrong relayer url.', {
throw new Error('Failed to initialize public key from relayer response', {
cause: e,
});
}
Expand Down
2 changes: 1 addition & 1 deletion src/relayer-provider/v2/TFHECrs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ export class TFHECrs {
return TFHECrs._fromUrl(params);
} catch (e) {
throw new TFHECrsError({
message: 'Impossible to fetch public key: wrong relayer url.',
message: 'Failed to fetch or deserialize CRS from URL',
cause: e,
});
}
Expand Down
3 changes: 2 additions & 1 deletion src/relayer-provider/v2/TFHEPublicKey.ts
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,8 @@ export class TFHEPublicKey {
TFHEPublicKey.assertKeyUrlType(params, 'arg');
return TFHEPublicKey._fromUrl(params);
} catch (e) {
throw new Error('Impossible to fetch public key: wrong relayer url.', {
throw new TFHEPublicKeyError({
message: 'Failed to fetch or deserialize public key from URL',
cause: e,
});
}
Expand Down
2 changes: 1 addition & 1 deletion src/relayer/network.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export const getKeysFromRelayer = async (
keyurlCache[versionUrl] = result;
return result;
} catch (e) {
throw new Error('Impossible to fetch public key: wrong relayer url.', {
throw new Error('Failed to fetch or deserialize public key', {
cause: e,
});
}
Expand Down