1
0
mirror of https://github.com/garraflavatra/rolens.git synced 2025-07-22 15:18:02 +00:00

Correct use of zenity methods

This commit is contained in:
2023-02-21 17:27:44 +01:00
parent 1f76b16e75
commit 5b1f410a50
15 changed files with 64 additions and 64 deletions

View File

@ -26,7 +26,7 @@ func (a *App) UpdateItems(hostKey, dbKey, collKey string, formJson string) int64
if err != nil {
runtime.LogError(a.ctx, "Could not parse update form:")
runtime.LogError(a.ctx, err.Error())
zenity.Info(err.Error(), zenity.Title("Could not parse form"), zenity.ErrorIcon)
zenity.Error(err.Error(), zenity.Title("Could not parse form"), zenity.ErrorIcon)
return 0
}
@ -44,7 +44,7 @@ func (a *App) UpdateItems(hostKey, dbKey, collKey string, formJson string) int64
runtime.LogWarning(a.ctx, "Invalid update query:")
runtime.LogWarning(a.ctx, form.Query)
runtime.LogWarning(a.ctx, err.Error())
zenity.Info(err.Error(), zenity.Title("Invalid update query"), zenity.ErrorIcon)
zenity.Error(err.Error(), zenity.Title("Invalid update query"), zenity.ErrorIcon)
return 0
}
@ -57,7 +57,7 @@ func (a *App) UpdateItems(hostKey, dbKey, collKey string, formJson string) int64
runtime.LogWarning(a.ctx, "Invalid update parameter value:")
runtime.LogWarning(a.ctx, param.Value)
runtime.LogWarning(a.ctx, err.Error())
zenity.Info(err.Error(), zenity.Title("Invalid update query"), zenity.ErrorIcon)
zenity.Error(err.Error(), zenity.Title("Invalid update query"), zenity.ErrorIcon)
return 0
}
}
@ -74,7 +74,7 @@ func (a *App) UpdateItems(hostKey, dbKey, collKey string, formJson string) int64
if err != nil {
runtime.LogWarning(a.ctx, "Encountered an error while performing update:")
runtime.LogWarning(a.ctx, err.Error())
zenity.Info(err.Error(), zenity.Title("Error while performing update"), zenity.ErrorIcon)
zenity.Error(err.Error(), zenity.Title("Error while performing update"), zenity.ErrorIcon)
return 0
}