diff --git a/keepassxc-browser/content/fill.js b/keepassxc-browser/content/fill.js index 8f7cb02..2033442 100644 --- a/keepassxc-browser/content/fill.js +++ b/keepassxc-browser/content/fill.js @@ -25,7 +25,8 @@ kpxcFill.fillAttributeToActiveElementWith = async function(attr) { kpxcFill.fillInFromActiveElement = async function(passOnly = false) { await kpxc.receiveCredentialsIfNecessary(); if (kpxc.credentials.length === 0) { - logDebug('Error: Credential list is empty.'); + logDebug(`Error: Credential list is empty for: ${document.location.origin}`); + kpxcUI.createNotification('error', `${tr('credentialsNoLoginsFound')} ${document.location.origin}`); return; } @@ -192,7 +193,8 @@ kpxcFill.fillSegmentedTotp = function(elem, val, totpInputs) { kpxcFill.fillFromUsernameIcon = async function(combination) { await kpxc.receiveCredentialsIfNecessary(); if (kpxc.credentials.length === 0) { - logDebug('Error: Credential list is empty.'); + logDebug(`Error: Credential list is empty for: ${document.location.origin}`); + kpxcUI.createNotification('error', `${tr('credentialsNoLoginsFound')} ${document.location.origin}`); return; } else if (kpxc.credentials.length > 1 && kpxc.settings.autoCompleteUsernames) { kpxcUserAutocomplete.showList(combination.username || combination.password);