Fix showing error msg

This commit is contained in:
Michal Horejsek
2020-08-21 10:01:45 +02:00
parent 40aeb6c010
commit 8592a264c0
3 changed files with 12 additions and 5 deletions

View File

@ -474,6 +474,7 @@ func (f *FrontendQt) createLabelOrFolder(email, name, color string, isLabel bool
m, err := f.transfer.CreateTargetMailbox(m)
if err != nil {
log.Errorln("Folder/Label creating:", err)
err = errors.New(name + "\n" + err.Error()) // GUI splits by \n.
if isLabel {
f.showError(errCreateLabelFailed, err)
} else {