Display an error message when sending a project by mail fails, instead of crashing.

[DEVELOPMENT ENVIRONMENT]
* BUG: Display an error message when sending a project by mail fails, instead of crashing.
This commit is contained in:
Benoît Minisini 2023-03-29 20:46:57 +02:00
parent 2e42435763
commit 1e54fd3863

View file

@ -5846,7 +5846,8 @@ Public Sub SendMail()
sTemp = File.SetName(sTemp, GetDefaultArchiveBaseName()) & ".tar.gz"
Try Kill sTemp
MakeSourcePackageTo(sTemp)
Desktop.SendMail(Null,,, If(Project.Title, Project.Title, Project.Name),, sTemp)
Try Desktop.SendMail(Null,,, If(Project.Title, Project.Title, Project.Name),, sTemp)
If Error Then FMain.ShowErrorWith(("Unable to send project by mail."))
End