1
0
mirror of https://github.com/garraflavatra/rolens.git synced 2024-12-01 13:20:54 +00:00

Altered remove error messages

This commit is contained in:
Romein van Buren 2023-01-19 15:07:40 +01:00
parent 3d97f3b92f
commit bf4f9c0506
Signed by: romein
GPG Key ID: 0EFF8478ADDF6C49

View File

@ -59,7 +59,7 @@ func (a *App) RemoveItems(hostKey, dbKey, collKey, jsonData string, many bool) i
fmt.Println(err.Error()) fmt.Println(err.Error())
runtime.MessageDialog(a.ctx, runtime.MessageDialogOptions{ runtime.MessageDialog(a.ctx, runtime.MessageDialogOptions{
Type: runtime.ErrorDialog, Type: runtime.ErrorDialog,
Title: "Encountered an error while performing query", Title: "Encountered an error while removing items",
Message: err.Error(), Message: err.Error(),
}) })
return 0 return 0
@ -84,7 +84,7 @@ func (a *App) RemoveItemById(hostKey, dbKey, collKey, itemId string) bool {
fmt.Println(err.Error()) fmt.Println(err.Error())
runtime.MessageDialog(a.ctx, runtime.MessageDialogOptions{ runtime.MessageDialog(a.ctx, runtime.MessageDialogOptions{
Type: runtime.ErrorDialog, Type: runtime.ErrorDialog,
Title: "Encountered an error while performing query", Title: "Encountered an error while removing item" + itemId,
Message: err.Error(), Message: err.Error(),
}) })
return false return false