2
0

🧑‍💻 Provide SMTP error details in toast

This commit is contained in:
Baptiste Arnaud
2024-07-29 09:49:55 +02:00
parent 3ba0e393af
commit da908ffe90

View File

@ -83,10 +83,12 @@ export const SmtpCreateModalContent = ({
if (testSmtpError) { if (testSmtpError) {
console.error(testSmtpError) console.error(testSmtpError)
setIsCreating(false) setIsCreating(false)
return showToast({ showToast({
title: 'Invalid configuration', title: 'Invalid configuration',
description: "We couldn't send the test email with your configuration", description: "We couldn't send the test email with your configuration",
details: testSmtpError,
}) })
return
} }
mutate({ mutate({
credentials: { credentials: {