We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a228c13 commit 6aca96fCopy full SHA for 6aca96f
1 file changed
src/hame_api.ts
@@ -187,6 +187,12 @@ export class HameApi {
187
188
const data = (await resp.json()) as HameApiResponse;
189
190
+ if (data.code === "4") {
191
+ throw new Error(
192
+ `Incorrect password for ${mailbox}. Please double-check the credentials configured for the add-on and try again. (${data.code} - ${data.msg})`,
193
+ );
194
+ }
195
+
196
if (data.code !== "2" || !data.token) {
197
throw new Error(
198
`Unexpected API response code: ${data.code} - ${data.msg}`,
0 commit comments