Skip to content

Commit

Permalink
fix: get rid of unused string: error-could-not-add-email
Browse files Browse the repository at this point in the history
  • Loading branch information
mansaj committed Aug 1, 2024
1 parent d0226ae commit 5998186
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion locales/en/app.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
##

error-could-not-add-email = Could not add email address to database.
error-not-subscribed = This email address is not subscribed to { -product-name }.
error-hibp-throttled = Too many connections to { -brand-HIBP }.
error-hibp-connect = Error connecting to { -brand-HIBP }.
Expand Down
2 changes: 1 addition & 1 deletion src/db/tables/emailAddresses.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ async function _addEmailHash (sha1, email, signupLanguage, verified = false) {
} catch (e) {
// @ts-ignore Log whatever, we don't care
console.error(e)
throw new Error(getMessage('error-could-not-add-email'))
throw new Error('error_could_not_add_email')
}
}
/* c8 ignore stop */
Expand Down

0 comments on commit 5998186

Please sign in to comment.