improving error message (#589)
This commit is contained in:
@@ -118,7 +118,7 @@ export default async function processLNUrlPay(input, context) {
|
||||
|
||||
if (!invoice)
|
||||
throw new Error(
|
||||
t('wallet.sendPages.handlingAddressErrors.lnurlPayInvoiceError'),
|
||||
t('wallet.sendPages.handlingAddressErrors.lnurlPayNoInvoiceError'),
|
||||
);
|
||||
|
||||
// Now that we have the invoice, determine which fee estimates are needed
|
||||
@@ -210,6 +210,12 @@ export default async function processLNUrlPay(input, context) {
|
||||
}
|
||||
}
|
||||
|
||||
if (!input.data.maxSendable || !input.data.minSendable) {
|
||||
throw new Error(
|
||||
t('wallet.sendPages.handlingAddressErrors.lnurlPayInvalidFormat'),
|
||||
);
|
||||
}
|
||||
|
||||
const canEditPayment = !invoice;
|
||||
|
||||
const displayAmount =
|
||||
|
||||
@@ -1027,6 +1027,8 @@
|
||||
"lnurlFailedAuthMessage": "LNURL-Authentifizierung fehlgeschlagen",
|
||||
"lnurlConfirmMessage": "LNURL erfolgreich authentifiziert",
|
||||
"lnurlPayInvoiceError": "Fehler beim Erstellen der Rechnung für die LNURL-Zahlung. Bitte versuchen Sie es erneut.",
|
||||
"lnurlPayNoInvoiceError": "Der Dienst, den du bezahlen möchtest, ist derzeit offline. Wenn das Problem weiterhin besteht, kontaktiere das Unternehmen, das du bezahlen möchtest.",
|
||||
"lnurlPayInvalidFormat": "Der Dienst, den du bezahlen möchtest, hat keine korrekten Daten zurückgegeben. Wenn das Problem weiterhin besteht, kontaktiere das Unternehmen, das du bezahlen möchtest.",
|
||||
"lnurlWithdrawlStart": "Rechnung für Auszahlung wird generiert...",
|
||||
"lnurlWithdrawlInvoiceError": "Rechnung für LNURL-Auszahlung konnte nicht generiert werden",
|
||||
"waitingForLnurlWithdrawl": "Warten auf Zahlung...",
|
||||
|
||||
@@ -1041,6 +1041,8 @@
|
||||
"lnurlFailedAuthMessage": "Failed to authenticate using Lightning",
|
||||
"lnurlConfirmMessage": "Login successfull",
|
||||
"lnurlPayInvoiceError": "Failed to generate invoice for this Lightning address payment. Please try again.",
|
||||
"lnurlPayNoInvoiceError": "The service you are trying to pay is currently offline. If the issue persists, contact the company you are trying to pay about the problem.",
|
||||
"lnurlPayInvalidFormat": "The service you are trying to pay did not return the correct data. If the issue persists, contact the company you are trying to pay about the problem.",
|
||||
"lnurlWithdrawlStart": "Generating invoice for withdrawal",
|
||||
"lnurlWithdrawlInvoiceError": "Unable to generate invoice for Lightning withdrawal",
|
||||
"waitingForLnurlWithdrawl": "Waiting for payment...",
|
||||
|
||||
@@ -891,6 +891,8 @@
|
||||
"lnurlFailedAuthMessage": "Falló la autenticación LNURL",
|
||||
"lnurlConfirmMessage": "LNURL autenticado con éxito",
|
||||
"lnurlPayInvoiceError": "No se pudo generar la factura para el pago LNURL. Inténtalo de nuevo.",
|
||||
"lnurlPayNoInvoiceError": "El servicio que intentas pagar está actualmente fuera de línea. Si el problema persiste, contacta con la empresa a la que intentas pagar.",
|
||||
"lnurlPayInvalidFormat": "El servicio que intentas pagar no devolvió los datos correctos. Si el problema persiste, contacta con la empresa a la que intentas pagar.",
|
||||
"lnurlWithdrawlStart": "Generando factura para retiro",
|
||||
"lnurlWithdrawlInvoiceError": "No se pudo generar la factura para retiro LNURL",
|
||||
"waitingForLnurlWithdrawl": "Esperando pago...",
|
||||
|
||||
@@ -1025,6 +1025,8 @@
|
||||
"lnurlFailedAuthMessage": "Échec de l'authentification de LNURL",
|
||||
"lnurlConfirmMessage": "LNURL authentifié avec succès",
|
||||
"lnurlPayInvoiceError": "Impossible de générer la facture pour le paiement LNURL. Veuillez réessayer.",
|
||||
"lnurlPayNoInvoiceError": "Le service que vous essayez de payer est actuellement hors ligne. Si le problème persiste, contactez l’entreprise que vous essayez de payer.",
|
||||
"lnurlPayInvalidFormat": "Le service que vous essayez de payer n’a pas renvoyé les données correctes. Si le problème persiste, contactez l’entreprise que vous essayez de payer.",
|
||||
"lnurlWithdrawlStart": "Générer une facture pour le retrait",
|
||||
"lnurlWithdrawlInvoiceError": "Impossible de générer une facture pour le retrait de lnurl",
|
||||
"waitingForLnurlWithdrawl": "En attente de paiement...",
|
||||
|
||||
@@ -1025,6 +1025,8 @@
|
||||
"lnurlFailedAuthMessage": "Autenticazione LNURL fallita",
|
||||
"lnurlConfirmMessage": "LNURL autenticato con successo",
|
||||
"lnurlPayInvoiceError": "Impossibile generare la fattura per il pagamento LNURL. Riprova.",
|
||||
"lnurlPayNoInvoiceError": "Il servizio che stai cercando di pagare è attualmente offline. Se il problema persiste, contatta l’azienda che stai cercando di pagare.",
|
||||
"lnurlPayInvalidFormat": "Il servizio che stai cercando di pagare non ha restituito i dati corretti. Se il problema persiste, contatta l’azienda che stai cercando di pagare.",
|
||||
"lnurlWithdrawlStart": "Generazione fattura per prelievo",
|
||||
"lnurlWithdrawlInvoiceError": "Impossibile generare fattura per prelievo LNURL",
|
||||
"waitingForLnurlWithdrawl": "In attesa di pagamento...",
|
||||
|
||||
@@ -1025,6 +1025,8 @@
|
||||
"lnurlFailedAuthMessage": "Falha ao autenticar LNURL",
|
||||
"lnurlConfirmMessage": "LNURL autenticado com sucesso",
|
||||
"lnurlPayInvoiceError": "Falha ao gerar a fatura para pagamento LNURL. Tente novamente.",
|
||||
"lnurlPayNoInvoiceError": "O serviço que você está tentando pagar está atualmente offline. Se o problema persistir, entre em contato com a empresa que você está tentando pagar.",
|
||||
"lnurlPayInvalidFormat": "O serviço que você está tentando pagar não retornou os dados corretos. Se o problema persistir, entre em contato com a empresa que você está tentando pagar.",
|
||||
"lnurlWithdrawlStart": "Gerando fatura para saque",
|
||||
"lnurlWithdrawlInvoiceError": "Não foi possível gerar a fatura para retirada a partir do lnurl",
|
||||
"waitingForLnurlWithdrawl": "Aguardando pagamento...",
|
||||
|
||||
@@ -1026,6 +1026,8 @@
|
||||
"lnurlFailedAuthMessage": "Ошибка входа через Молнию",
|
||||
"lnurlConfirmMessage": "Вход успешен",
|
||||
"lnurlPayInvoiceError": "Не удалось создать инвойс для этого адреса Молнии.",
|
||||
"lnurlPayNoInvoiceError": "Сервис, который вы пытаетесь оплатить, в данный момент недоступен. Если проблема сохраняется, свяжитесь с компанией, которой вы пытаетесь заплатить.",
|
||||
"lnurlPayInvalidFormat": "Сервис, который вы пытаетесь оплатить, вернул некорректные данные. Если проблема сохраняется, свяжитесь с компанией, которой вы пытаетесь заплатить.",
|
||||
"lnurlWithdrawlStart": "Генерация инвойса на вывод",
|
||||
"lnurlWithdrawlInvoiceError": "Не удалось создать инвойс на вывод",
|
||||
"waitingForLnurlWithdrawl": "Ожидание платежа...",
|
||||
|
||||
@@ -1025,6 +1025,8 @@
|
||||
"lnurlFailedAuthMessage": "Misslyckades med att autentisera LNURL",
|
||||
"lnurlConfirmMessage": "LNURL framgångsrikt autentiserad",
|
||||
"lnurlPayInvoiceError": "Misslyckades med att skapa faktura för LNURL-betalning. Försök igen.",
|
||||
"lnurlPayNoInvoiceError": "Tjänsten du försöker betala är för närvarande offline. Om problemet kvarstår, kontakta företaget du försöker betala.",
|
||||
"lnurlPayInvalidFormat": "Tjänsten du försöker betala returnerade inte korrekt data. Om problemet kvarstår, kontakta företaget du försöker betala.",
|
||||
"lnurlWithdrawlStart": "Generera faktura för uttag",
|
||||
"lnurlWithdrawlInvoiceError": "Det går inte att generera faktura för lnurl-uttag",
|
||||
"waitingForLnurlWithdrawl": "Väntar på betalning...",
|
||||
|
||||
Reference in New Issue
Block a user