Skip to content

Commit cdf8d6b

Browse files
refactor: change provider initialization failure from console error to warning
1 parent cdd0069 commit cdf8d6b

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

src/clients/algosigner/client.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,12 @@ class AlgoSignerClient extends BaseWallet {
8787
network,
8888
});
8989
} catch (e) {
90-
console.error("Error initializing...", e);
90+
console.warn(e);
91+
console.warn(
92+
`Error initializing ${AlgoSignerClient.metadata.name}.`,
93+
"Do you have the extension installed?",
94+
"https://www.purestake.com/technology/algosigner"
95+
);
9196
return null;
9297
}
9398
}

src/clients/exodus/client.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,12 @@ class ExodusClient extends BaseWallet {
7575
network,
7676
});
7777
} catch (e) {
78-
console.error("Error initializing...", e);
78+
console.warn(e);
79+
console.warn(
80+
`Error initializing ${ExodusClient.metadata.name}.`,
81+
"Do you have the extension installed?",
82+
"https://www.exodus.com/web3-wallet"
83+
);
7984
return null;
8085
}
8186
}

0 commit comments

Comments
 (0)